Commit 6aced023 by zhaoxiqing

gsb

parent 08a5dfad
......@@ -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 = System.encryption(JSON.stringify(str));
let encry = system.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,// 订单金额
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment