Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
e94f80e1
Commit
e94f80e1
authored
Nov 07, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lin pannong
parent
40b40292
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
15 deletions
+31
-15
center-channel/app/base/service/impl/common/signSve.js
+30
-14
center-channel/app/base/service/impl/utilsSve/utilsServiceSve.js
+1
-1
No files found.
center-channel/app/base/service/impl/common/signSve.js
View file @
e94f80e1
...
@@ -71,15 +71,15 @@ class SignService{
...
@@ -71,15 +71,15 @@ class SignService{
}
}
var
resultSignStr
=
signArr
.
join
(
"&"
)
+
"&key="
+
app_secret
;
var
resultSignStr
=
signArr
.
join
(
"&"
)
+
"&key="
+
app_secret
;
var
resultTmpSign
=
md5
(
resultSignStr
).
toUpperCase
();
var
resultTmpSign
=
md5
(
resultSignStr
).
toUpperCase
();
console
.
log
(
"----------------resultSignStr start"
);
//
console.log("----------------resultSignStr start");
console
.
log
(
resultSignStr
)
//
console.log(resultSignStr)
console
.
log
(
"----------------resultSignStr end"
);
//
console.log("----------------resultSignStr end");
console
.
log
(
"----------------resultTmpSign start"
);
//
console.log("----------------resultTmpSign start");
console
.
log
(
resultTmpSign
)
//
console.log(resultTmpSign)
console
.
log
(
"----------------resultTmpSign end"
);
//
console.log("----------------resultTmpSign end");
console
.
log
(
"----------------params.sign start"
);
//
console.log("----------------params.sign start");
console
.
log
(
params
.
sign
)
//
console.log(params.sign)
console
.
log
(
"----------------params.sign end"
);
//
console.log("----------------params.sign end");
if
(
params
.
sign
!=
resultTmpSign
)
{
if
(
params
.
sign
!=
resultTmpSign
)
{
return
system
.
getResult
(
null
,
"返回值签名验证失败"
);
return
system
.
getResult
(
null
,
"返回值签名验证失败"
);
}
}
...
@@ -113,7 +113,7 @@ class SignService{
...
@@ -113,7 +113,7 @@ class SignService{
}
}
}
}
module
.
exports
=
SignService
;
module
.
exports
=
SignService
;
//
var task = new SignService();
var
task
=
new
SignService
();
// var obj = {
// var obj = {
// "intentionBizId": "TRE-nmnHtEoTjeEtest",
// "intentionBizId": "TRE-nmnHtEoTjeEtest",
...
@@ -136,6 +136,22 @@ module.exports = SignService;
...
@@ -136,6 +136,22 @@ module.exports = SignService;
// "bizId":"202011031421",
// "bizId":"202011031421",
// "status":"16"
// "status":"16"
// }
// }
// task.createSign(obj,"7cbb892450174167b5c7e01we4717z51").then(d=>{
var
obj
=
{
// console.log(d,"!!!!!!!!!!!!!!!!!!!!!!!!!!");
"bizId"
:
"202011071358"
,
// });
"contactName"
:
"lin"
,
\ No newline at end of file
"contactMobile"
:
"13911391996"
,
"timeUnit"
:
"year"
,
"quantity"
:
1
,
"companyInfo"
:{
"companyName"
:
"公司宝"
,
"taxpayerType"
:
"NORMAL_TAXPAYER"
,
"acctgSystemId"
:
"10001"
,
"companyForm"
:
"1"
,
"industry"
:
1
,
"taxpayerNumber"
:
"123456789"
,
"companyArea"
:
"北京"
}
}
task
.
createSign
(
obj
,
"7cbb892450174167b5c7e01we4717z51"
).
then
(
d
=>
{
console
.
log
(
d
,
"!!!!!!!!!!!!!!!!!!!!!!!!!!"
);
});
\ No newline at end of file
center-channel/app/base/service/impl/utilsSve/utilsServiceSve.js
View file @
e94f80e1
...
@@ -102,7 +102,7 @@ class utils360Sve extends AppServiceBase {
...
@@ -102,7 +102,7 @@ class utils360Sve extends AppServiceBase {
appInfo
:
pobj
.
appInfo
appInfo
:
pobj
.
appInfo
}
}
this
.
utilsPushSve
.
aliBusiness2Delivery
(
deliveryObj
,
"submitService"
);
this
.
utilsPushSve
.
aliBusiness2Delivery
(
deliveryObj
,
"submitService"
);
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
(
{
orderNo
:
pobj
.
actionBody
.
orderNo
}
);
}
}
async
notifyService
(
pobj
,
actionBody
,
req
)
{
async
notifyService
(
pobj
,
actionBody
,
req
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment