|
@@ -14,7 +14,14 @@ CMD.runTask = async function(data,main_info,PlatformInfo,call_back){
|
|
|
let recharge_template_id = ""
|
|
|
let call_back_template_id = ""
|
|
|
let timestamp = helper.getCurrentUnixTimestamp()
|
|
|
- let signKey = helper.md5(config.dianzhong_config.clientId+config.dianzhong_config.token+timestamp)
|
|
|
+ let clientId = config.dianzhong_config.clientId
|
|
|
+ if(PlatformInfo.mini_program_platform_id==config.wx){
|
|
|
+ clientId = config.dianzhong_channel_config.clientId
|
|
|
+ }else if(PlatformInfo.mini_program_platform_id==config.dy){
|
|
|
+ clientId = config.dianzhong_config.clientId
|
|
|
+ }
|
|
|
+
|
|
|
+ let signKey = helper.md5(clientId+config.dianzhong_config.token+timestamp)
|
|
|
for (let index = 0; index < chongzhi_list.length; index++) {
|
|
|
const cz_obj = chongzhi_list[index];
|
|
|
if(cz_obj.id==chongzhi_id){
|
|
@@ -33,7 +40,7 @@ CMD.runTask = async function(data,main_info,PlatformInfo,call_back){
|
|
|
|
|
|
try {
|
|
|
let client = new HttpClient()
|
|
|
- let clientId= config.dianzhong_config.clientId;
|
|
|
+ let clientId= clientId;
|
|
|
let bookId = data.product_id;
|
|
|
let chapterIdx = 1;
|
|
|
let name = data.product_name;
|