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
227dbef5
Commit
227dbef5
authored
Jul 31, 2020
by
王昆
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bpo-web' of gitlab.gongsibao.com:jiangyong/zhichan into bpo-web
parents
ead4ccd3
a662bbca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
bpo-web/app/base/api/impl/bpoSDPJApi.js
+9
-6
No files found.
bpo-web/app/base/api/impl/bpoSDPJApi.js
View file @
227dbef5
...
...
@@ -160,6 +160,7 @@ class BpoSDPJApi {
let
_no
=
await
this
.
setNo
(
_cCashInfo
.
id
.
toString
());
_no
=
encodeURIComponent
(
_no
);
let
custormUrl
=
`https://bpohhr.gongsibao.com/sdpj?no=
${
_no
}
&outTradeNo=
${
_cCashInfo
.
outTradeNo
}
&mchtId=
${
_cCashInfo
.
mchtId
}
`
;
console
.
log
(
"----------------->"
+
custormUrl
);
// 生成二维码
let
url
=
await
this
.
qrClient
.
generateQR
(
custormUrl
);
_cCashInfo
.
qrcode
=
url
;
...
...
@@ -336,7 +337,7 @@ class BpoSDPJApi {
let
cashUser
=
await
this
.
ccashuserSve
.
findOne
({
openId
:
obj
.
openId
});
})
||
{}
;
let
doAuthRes
=
await
this
.
doAuth
({
id_name
:
this
.
trim
(
obj
.
id_name
),
...
...
@@ -408,7 +409,7 @@ class BpoSDPJApi {
});
await
this
.
redisLock
.
lock
(
key
,
_lock
,
20
);
let
result
=
await
this
.
cashOut
(
ccashinfo
,
api
);
let
result
=
await
this
.
cashOut
(
ccashinfo
,
api
,
cashUser
);
return
result
;
}
catch
(
e
)
{
console
.
log
(
e
);
...
...
@@ -462,7 +463,7 @@ class BpoSDPJApi {
}
}
async
cashOut
(
cashInfo
,
api
)
{
async
cashOut
(
cashInfo
,
api
,
cashUser
)
{
if
(
cashInfo
.
qrcode_status
!=
1
)
{
// 1 认证页面 2 二维码已失效 3 红包领取页面 4 红包领取结果页面(心跳查询) 5 红包已被领取
return
this
.
getCodeResult
(
0
,
{
redirect_code
:
2
});
...
...
@@ -477,12 +478,12 @@ class BpoSDPJApi {
bizContent
.
push
({
"note"
:
"提现"
,
"idType"
:
"00"
,
"idName"
:
cash
Info
.
id_name
,
"idName"
:
cash
User
.
id_name
,
"seqNo"
:
"1000"
,
"accNo"
:
cash
Info
.
openId
,
"accNo"
:
cash
User
.
openId
,
"amt"
:
cashInfo
.
amt
,
"accType"
:
"02"
,
"idNo"
:
cash
Info
.
id_no
"idNo"
:
cash
User
.
id_no
});
let
nonceStr
=
await
this
.
getUidStr
(
32
,
36
);
let
tradeTime
=
moment
().
format
(
'YYYYMMDDHHmmss'
);
...
...
@@ -519,6 +520,8 @@ class BpoSDPJApi {
url
:
settings
.
apiconfig
.
payDomain
()
+
"/merchant/order/transfer"
,
data
:
param
,
});
console
.
log
(
rs
.
data
);
if
(
rs
.
data
.
code
===
0
)
{
cashInfo
.
trade_status
=
"01"
;
cashInfo
.
trade_desc
=
"提现申请成功"
;
...
...
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