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
96239216
Commit
96239216
authored
Jul 30, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bpo-web' of gitlab.gongsibao.com:jiangyong/zhichan into bpo-web
parents
75f45376
9bfeff8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
6 deletions
+45
-6
bpo-web/app/base/api/impl/bpoSDPJApi.js
+45
-6
No files found.
bpo-web/app/base/api/impl/bpoSDPJApi.js
View file @
96239216
...
@@ -466,11 +466,9 @@ class BpoSDPJApi {
...
@@ -466,11 +466,9 @@ class BpoSDPJApi {
cashInfo
.
trade_status
=
"01"
;
cashInfo
.
trade_status
=
"01"
;
cashInfo
.
trade_desc
=
"提现申请成功"
;
cashInfo
.
trade_desc
=
"提现申请成功"
;
try
{
try
{
let
actual_amt
=
await
this
.
esettleSve
.
findAmtByOutTradeNo
({
// 张娇强烈要求
busi_id
:
param
.
mchtId
,
let
actualAmt
=
await
this
.
getActualAmt
(
cashInfo
,
api
);
out_trade_no
:
param
.
outTradeNo
cashInfo
.
actual_amt
=
actualAmt
;
});
cashInfo
.
actual_amt
=
actual_amt
;
}
catch
(
eeee
)
{
}
catch
(
eeee
)
{
console
.
log
(
eeee
);
console
.
log
(
eeee
);
}
}
...
@@ -492,7 +490,48 @@ class BpoSDPJApi {
...
@@ -492,7 +490,48 @@ class BpoSDPJApi {
}
}
}
}
async
getUidStr
(
len
,
radix
)
{
z
async
testCashOutResult
(
obj
,
req
)
{
let
cashInfo
=
await
this
.
ccashinfoSve
.
findById
(
obj
.
id
);
let
api
=
await
this
.
ecompanybusiSve
.
findOne
({
appId
:
cashInfo
.
app_id
,
etemplate_id
:
cashInfo
.
ecid
,
mchtId
:
cashInfo
.
mchtId
,
});
let
actualAmt
=
await
this
.
getActualAmt
(
cashInfo
,
api
);
cashInfo
.
actual_amt
=
actualAmt
;
await
cashInfo
.
save
();
return
data
;
}
async
getActualAmt
(
cashInfo
,
api
)
{
let
params
=
{
"appId"
:
cashInfo
.
app_id
,
"mchtId"
:
cashInfo
.
mchtId
,
nonceStr
:
await
this
.
getUidStr
(
32
,
36
),
"currency"
:
"CNY"
,
"outTradeNo"
:
cashInfo
.
outTradeNo
,
"seqNo"
:
"1000"
,
"signType"
:
"MD5"
,
};
params
.
sign
=
system
.
getSign
(
params
,
api
.
key
,
this
.
EXCEPT_KEYS
);
let
rs
=
await
axios
({
method
:
'post'
,
url
:
settings
.
apiconfig
.
payDomain
()
+
"/merchant/order/query"
,
data
:
params
,
});
console
.
log
(
rs
.
data
);
if
(
rs
.
status
==
200
&&
rs
.
data
.
code
==
0
)
{
let
bizArr
=
(
rs
.
data
.
data
||
{}).
bizContent
||
[];
if
(
bizArr
.
length
>
0
)
{
let
item
=
bizArr
[
0
]
||
{};
return
item
.
actualAmt
||
0
;
}
}
return
-
1
;
}
async
getUidStr
(
len
,
radix
)
{
var
chars
=
'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
.
split
(
''
);
var
chars
=
'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
.
split
(
''
);
var
uuid
=
[],
var
uuid
=
[],
i
;
i
;
...
...
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