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
017783ae
Commit
017783ae
authored
Mar 01, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
7fbc278b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
center-app/app/base/service/impl/utilsSve/utilstlbankSve.js
+7
-3
No files found.
center-app/app/base/service/impl/utilsSve/utilstlbankSve.js
View file @
017783ae
...
...
@@ -108,6 +108,7 @@ class utilsTlBankSve {
// var payParam = await this.companypayparamDao.getOneByCompanyId(company_id, 1);
var
payParam
=
await
this
.
getpaymentinfo
(
app_id
);
if
(
!
payParam
)
{
var
rtn
=
await
this
.
restClient
.
execPost2
(
req_param
,
reqUrl
);
return
{
status
:
-
210
,
msg
:
"应用没有对应的支付凭证"
}
}
var
reqMethod
=
this
.
wxMethod
;
...
...
@@ -334,11 +335,14 @@ class utilsTlBankSve {
var
payParam
=
await
this
.
getpaymentinfo
(
uappid
);
if
(
!
payParam
)
{
return
system
.
getResult
(
null
,
"回调应用没有对应的支付凭证"
);
return
system
.
getResult
(
null
,
"app_pay_param回调应用没有对应的支付凭证"
);
}
if
(
!
payParam
.
notify_url
)
{
return
system
.
getResult
(
null
,
"app_pay_param回调应用没有对应的支付成功通知url配置"
);
}
var
appinfo
=
await
this
.
getappinfo
(
uappid
);
if
(
!
appinfo
)
{
return
system
.
getResult
(
null
,
"回调应用没有对应的支付凭证"
);
return
system
.
getResult
(
null
,
"
app
回调应用没有对应的支付凭证"
);
}
var
signResult
=
await
this
.
resultSign
(
parmas
,
payParam
.
pay_key
);
if
(
signResult
.
status
!=
0
)
{
...
...
@@ -349,7 +353,7 @@ class utilsTlBankSve {
parmas
.
uappid
=
attachList
.
length
==
2
?
attachList
[
1
]
:
attachList
[
2
];
//重写新签名
var
newparmas
=
await
this
.
getReqBeforeParam
(
parmas
,
appinfo
.
uapp_secret
);
var
backResult
=
await
this
.
execReqInfo
(
null
,
payParam
.
notify_url
,
newparmas
.
req_param
);
var
backResult
=
await
this
.
restClient
.
execPost
(
newparmas
.
req_param
,
payParam
.
notify_url
);
if
(
backResult
.
status
!=
0
)
{
return
backResult
;
}
...
...
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