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
70173258
Commit
70173258
authored
Jul 29, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
e73e2cc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
bpo-web/app/base/api/impl/bpoSDPJApi.js
+5
-3
bpo-web/app/base/service/impl/ccashinfoSve.js
+5
-1
No files found.
bpo-web/app/base/api/impl/bpoSDPJApi.js
View file @
70173258
...
...
@@ -209,7 +209,9 @@ class BpoSDPJApi {
if
(
!
cashInfo
)
{
return
this
.
getErrResult
(
"二维码不存在"
);
}
if
(
cashInfo
.
trade_status
)
{
return
this
.
getErrResult
(
"已经发起提现,不可作废"
);
}
if
(
cashInfo
.
qrcode_status
!=
2
)
{
cashInfo
.
qrcode_status
=
2
;
await
cashInfo
.
save
();
...
...
@@ -528,7 +530,7 @@ class BpoSDPJApi {
// 验证签名
let
sign
=
system
.
getSign
(
obj
,
api
.
key
,
this
.
EXCEPT_KEYS
);
console
.
log
(
"------------- wx-sdpj转账回调 签名 --------------"
,
obj
.
sign
,
sign
);
if
(
sign
!=
obj
.
sign
)
{
if
(
sign
!=
obj
.
sign
)
{
console
.
log
(
"------------- wx-sdpj转账回调 签名错误 --------------"
);
return
{
code
:
""
};
}
...
...
@@ -538,7 +540,7 @@ class BpoSDPJApi {
if
(
respCode
==
"00"
)
{
cashInfo
.
trade_status
=
"00"
;
cashInfo
.
trade_desc
=
"交易成功"
;
await
cashInfo
.
save
();
await
cashInfo
.
save
();
return
{
code
:
"0000"
};
}
else
if
(
respCode
==
"02"
)
{
cashInfo
.
trade_status
=
"02"
;
...
...
bpo-web/app/base/service/impl/ccashinfoSve.js
View file @
70173258
...
...
@@ -105,7 +105,11 @@ class CcashinfoService extends ServiceBase {
}
//判断用户是否提现过 交易状态 00 成功 01 待处理 02 失败
if
(
!
bean
.
trade_status
){
resData
.
redirect_code
=
1
;
//跳转到认证
if
(
bean
.
qrcode_status
==
2
)
{
resData
.
redirect_code
=
-
100
;
}
else
{
resData
.
redirect_code
=
1
;
//跳转到认证
}
}
else
{
resData
.
redirect_code
=
2
;
//跳转到领取结果
resData
.
trade_status
=
bean
.
trade_status
;
...
...
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