|
@@ -113,7 +113,7 @@ CMD.test_fq_mf_book_sid_tt = async function(book_id,sid_tt){
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-CMD.get_group_mapping = function(res){
|
|
|
+CMD.get_group_mapping = function(res,type){
|
|
|
let get_hy_group_mapping = require('../src/api/hy/get_hy_group_mapping');
|
|
|
get_hy_group_mapping.get_group_mapping((data)=>{
|
|
|
res.writeHead(200, {'Content-Type': 'application/json'});
|
|
@@ -124,7 +124,7 @@ CMD.get_group_mapping = function(res){
|
|
|
res.end(JSON.stringify({ message:"fail!",data:data,code:data.code}));
|
|
|
}
|
|
|
console.log("get_hy_group_mapping:",data)
|
|
|
- })
|
|
|
+ },type)
|
|
|
}
|
|
|
CMD.get_hy_rechargeTemplate = function(res){
|
|
|
let get_hy_recharge_template = require('../src/api/hy/get_hy_recharge_template');
|
|
@@ -442,7 +442,8 @@ var server = http.createServer(function(req,res){
|
|
|
}
|
|
|
|
|
|
}else if(jsonData['fun']=="groupMapping"&&jsonData['cmd']=="hy_link"){
|
|
|
- CMD.get_group_mapping(res)
|
|
|
+ let type = jsonData['data']['type']
|
|
|
+ CMD.get_group_mapping(res,type)
|
|
|
}else if(jsonData['fun']=="rechargeTemplate"&&jsonData['cmd']=="hy_link"){
|
|
|
CMD.get_hy_rechargeTemplate(res)
|
|
|
}else if(jsonData['fun']=="get_hy_SiteTemplate"&&jsonData['cmd']=="hy_link"){
|