|
@@ -382,8 +382,8 @@ CMD.get_yw_open_sessid_status = async function(res) {
|
|
res.end(JSON.stringify({ message:"成功!",data:OPENSESSID,code:10000}));
|
|
res.end(JSON.stringify({ message:"成功!",data:OPENSESSID,code:10000}));
|
|
}
|
|
}
|
|
|
|
|
|
-CMD.get_yw_account_list = async function(res) {
|
|
|
|
- let data = await require('../src/api/yw/get_yw_account_list').get_yw_account_list()
|
|
|
|
|
|
+CMD.get_yw_account_list = async function(res,coopid) {
|
|
|
|
+ let data = await require('../src/api/yw/get_yw_account_list').get_yw_account_list(coopid)
|
|
console.log('get_yw_account_list:', JSON.stringify(data));
|
|
console.log('get_yw_account_list:', JSON.stringify(data));
|
|
res.writeHead(200, {'Content-Type': 'application/json'});
|
|
res.writeHead(200, {'Content-Type': 'application/json'});
|
|
res.end(JSON.stringify({ message:"成功!",data:data.data.list,code:10000}));
|
|
res.end(JSON.stringify({ message:"成功!",data:data.data.list,code:10000}));
|
|
@@ -696,7 +696,8 @@ var server = http.createServer(function(req,res){
|
|
}else if(jsonData['fun']=="get_yw_open_sessid_status"&&jsonData['cmd']=="yw_link"){
|
|
}else if(jsonData['fun']=="get_yw_open_sessid_status"&&jsonData['cmd']=="yw_link"){
|
|
CMD.get_yw_open_sessid_status(res)
|
|
CMD.get_yw_open_sessid_status(res)
|
|
} else if(jsonData['fun']=="get_yw_account_list"&&jsonData['cmd']=="yw_link"){
|
|
} else if(jsonData['fun']=="get_yw_account_list"&&jsonData['cmd']=="yw_link"){
|
|
- CMD.get_yw_account_list(res)
|
|
|
|
|
|
+ let coopid = jsonData['data']['coopid']
|
|
|
|
+ CMD.get_yw_account_list(res,coopid)
|
|
} else if(jsonData['fun']=="get_zh_recharge_template"&&jsonData['cmd']=="zh_link"){
|
|
} else if(jsonData['fun']=="get_zh_recharge_template"&&jsonData['cmd']=="zh_link"){
|
|
let app_id = jsonData['data']['app_id']
|
|
let app_id = jsonData['data']['app_id']
|
|
let member_token = jsonData['data']['member_token']
|
|
let member_token = jsonData['data']['member_token']
|