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
dba439cf
Commit
dba439cf
authored
Jul 29, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
1f243d91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
bpo-web/app/base/api/impl/bpoSDPJApi.js
+7
-5
bpo-web/app/config/settings.js
+2
-1
No files found.
bpo-web/app/base/api/impl/bpoSDPJApi.js
View file @
dba439cf
...
...
@@ -447,22 +447,24 @@ class BpoSDPJApi {
url
:
settings
.
apiconfig
.
payDomain
()
+
"/merchant/order/transfer"
,
data
:
param
,
});
let
resData
=
{
amt
:
system
.
f2y
(
cashInfo
.
amt
)};
if
(
rs
.
data
.
code
===
0
)
{
cashInfo
.
trade_status
=
"01"
;
cashInfo
.
trade_desc
=
"提现申请成功"
;
await
cashInfo
.
save
();
return
this
.
getSuccessResult
(
"提现成功"
,
{
amt
:
system
.
f2y
(
cashInfo
.
amt
)});
this
.
ccashinfoSve
.
formatStatus
(
resData
,
cashInfo
);
return
this
.
getSuccessResult
(
"提现成功"
,
resData
);
}
else
{
cashInfo
.
trade_status
=
"02"
;
cashInfo
.
trade_desc
=
rs
.
data
.
msg
||
"提现申请失败"
;
await
cashInfo
.
save
();
return
this
.
getBaseResult
(
1
,
cashInfo
.
trade_desc
);
this
.
ccashinfoSve
.
formatStatus
(
resData
,
cashInfo
);
return
this
.
getSuccessResult
(
cashInfo
.
trade_desc
,
resData
);
}
console
.
log
(
rs
.
data
);
return
this
.
getCodeResult
(
rs
.
data
.
msg
);
}
catch
(
error
)
{
console
.
log
(
error
);
// 发起失败,删除trade
return
this
.
getErrResult
(
"接口异常"
);
}
}
...
...
bpo-web/app/config/settings.js
View file @
dba439cf
...
...
@@ -63,7 +63,8 @@ var settings = {
if
(
settings
.
env
==
"dev"
)
{
return
"http://39.106.185.66:8000"
;
}
else
{
return
"https://pay.gongsibao.com"
;
// return "https://pay.gongsibao.com";
return
"http://39.106.185.66:8000"
;
}
},
opLogUrl
:
function
()
{
...
...
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