|
@@ -177,11 +177,7 @@ CMD.get_fq_rechargeTemplate = function(res){
|
|
|
CMD.get_pull_token = async function(){
|
|
|
let token = await redis_help.getKeyValue("pull_data_token")
|
|
|
res.writeHead(200, {'Content-Type': 'application/json'});
|
|
|
- if(data.code==200){
|
|
|
- res.end(JSON.stringify({ message:"成功!",data:{token:token},code:10000}));
|
|
|
- }else{
|
|
|
- res.end(JSON.stringify({ message:"fail!",code:401}));
|
|
|
- }
|
|
|
+ res.end(JSON.stringify({ message:"成功!",data:{token:token},code:10000}));
|
|
|
console.log('get_pull_token:', token);
|
|
|
}
|
|
|
|