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
6aced023
Commit
6aced023
authored
Mar 14, 2020
by
zhaoxiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
08a5dfad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
bpo-admin/app/base/api/impl/channelApi.js
+7
-3
No files found.
bpo-admin/app/base/api/impl/channelApi.js
View file @
6aced023
...
...
@@ -45,6 +45,8 @@ class ChannelApi {
var
rc
=
system
.
getObject
(
"util.aliyunClient"
);
var
rtn
=
null
;
rtn
=
await
rc
.
post
(
this
.
FQURL
,
pushData
);
console
.
log
(
pushData
)
console
.
log
(
rtn
)
if
(
rtn
.
success
==
true
)
{
result
.
contractNo
=
rtn
.
data
.
contractNo
;
result
.
topush
=
"0"
;
...
...
@@ -66,6 +68,8 @@ class ChannelApi {
var
rc
=
system
.
getObject
(
"util.aliyunClient"
);
var
rtn
=
null
;
rtn
=
await
rc
.
post
(
this
.
FQURL
,
pushData
);
console
.
log
(
pushData
)
console
.
log
(
rtn
)
var
result
=
JSON
.
parse
(
system
.
decryption
(
pushData
.
param
));
if
(
rtn
.
success
==
true
)
{
result
.
contractNo
=
rtn
.
data
.
contractNo
;
...
...
@@ -114,7 +118,7 @@ class ChannelApi {
"idempotentSource"
:
"bpo_xbg"
,
// 来源编号,写死:bpo_xbg
"idempotentSourceName"
:
"BPO"
,
// 来源编号,写死:BPO薪必果
"thirdPartyChannelId"
:
chnanel
.
channel_id
.
toString
(),
// 渠道id
"thirdPartyCustomerId"
:
da
.
id
.
toString
(),
// 第三方客户id
"thirdPartyCustomerId"
:
chnanel
.
id
.
toString
(),
// 第三方客户id
"productId"
:
"5e6b02cc3290c3000a3a63dc"
,
// 云服产品id (测试环境)
// "allotRatio":"50",// 分润比例(百分比的数字部分(如:50代表50%))
"orderPrice"
:
da
.
deduct_amt
,
// 订单金额
...
...
@@ -129,7 +133,7 @@ class ChannelApi {
"origin_merchant_id"
:
chnanel
.
origin_merchant_id
,
//来源商户id
"platform_channel_id"
:
chnanel
.
platform_id
,
//对方渠道id
};
let
encry
=
S
ystem
.
encryption
(
JSON
.
stringify
(
str
));
let
encry
=
s
ystem
.
encryption
(
JSON
.
stringify
(
str
));
resultData
.
param
=
system
.
encryption
(
encry
);
return
resultData
;
}
...
...
@@ -140,7 +144,7 @@ class ChannelApi {
"idempotentSource"
:
"bpo_xbg"
,
// 来源编号,写死:bpo_xbg
"idempotentSourceName"
:
"BPO"
,
// 来源编号,写死:BPO薪必果
"thirdPartyChannelId"
:
chnanel
.
channel_id
.
toString
(),
// 渠道id
"thirdPartyCustomerId"
:
da
.
id
.
toString
(),
// 第三方客户id
"thirdPartyCustomerId"
:
chnanel
.
id
.
toString
(),
// 第三方客户id
"productId"
:
"5e6b02cc3290c3000a3a63dc"
,
// 云服产品id (测试环境)
// "allotRatio":"50",// 分润比例(百分比的数字部分(如:50代表50%))
"orderPrice"
:
da
.
amt
,
// 订单金额
...
...
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