Commit f973024c by 高宇强

gyq

parent 16f1c875
...@@ -128,9 +128,7 @@ class EnterpriseService { ...@@ -128,9 +128,7 @@ class EnterpriseService {
author = await this.getConvertSemiangleStr(author); author = await this.getConvertSemiangleStr(author);
var childName = await this.redisClient.get("qichacha_QccBranches:" + author); var childName = await this.redisClient.get("qichacha_QccBranches:" + author);
if (childName){ if (childName){
console.log(childName);
return System.getResult2(JSON.parse(childName), "获取数据成功"); return System.getResult2(JSON.parse(childName), "获取数据成功");
} }
else{ else{
...@@ -782,15 +780,15 @@ class EnterpriseService { ...@@ -782,15 +780,15 @@ class EnterpriseService {
} }
module.exports = EnterpriseService; module.exports = EnterpriseService;
var tesk = new EnterpriseService(); // var tesk = new EnterpriseService();
var parm = { // var parm = {
//author: "淘宝(中国)软件有限公司" // //author: "淘宝(中国)软件有限公司"
author:"华为技术有限公司" // author:"华为技术有限公司"
}; // };
tesk.getQccBranches(parm).then(function (result) { // tesk.getQccBranches(parm).then(function (result) {
console.log(result); // console.log(result);
// console.log(result.data.data[0]); // // console.log(result.data.data[0]);
}).catch(function (e) { // }).catch(function (e) {
console.log(e); // console.log(e);
}); // });
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