Commit 5b6f60ba by 宋毅

tj

parent dc0e1b91
......@@ -7,7 +7,7 @@ class tmqueryCtl extends CtlBase {
super();
this.channelApiUrl = settings.channelApiUrl();
this.appInfo = {
1688: { appkey: "201911131657", secret: "eeb18393aade40149287b024d8ba0850", selfRegistProduct: ["5743091"] }
jd: { appkey: "201911251551", secret: "56006077354d48858026c80c0e10bef6" }
};
this.execClient = system.getObject("util.execClient");
}
......@@ -94,35 +94,12 @@ class tmqueryCtl extends CtlBase {
if (result.status && result.status != 0) {
return result;
}
// if (pobj.actionType == "getChannelOrderInfo") {
// var tmpSkipUrl = await this.getPageSkipUrl(reqobj.actionProcess, reqobj.actionBody.itemCode);
// if (!tmpSkipUrl) {
// return system.getResult(null, "获取页面url失败");
// }
// result.skipUrl = tmpSkipUrl;
// }//获取渠道订单信息
return result;
} catch (e) {
console.log(e.stack, "操作error...................");
return system.getResult(null, "操作失败");
}
}
// async getPageSkipUrl(reqType, itemCode) {
// var self = this;
// var skipUrl = "";
// switch (reqType) {
// case "1688":
// if (self.appInfo["1688"].selfRegistProduct.indexOf(itemCode) < 0) {
// skipUrl = "/#/1688/jdindentlist";
// } else {
// skipUrl = "/#/1688/selftmreg";
// }
// break;
// default:
// break;
// }
// return skipUrl;
// }
async getToken(reqType) {
var self = this;
......@@ -130,8 +107,8 @@ class tmqueryCtl extends CtlBase {
var reqTokenUrl = this.channelApiUrl + "/auth/accessAuth/getToken";
var reqParam = {};
switch (reqType) {
case "1688":
reqParam = self.appInfo["1688"];
case "jd":
reqParam = self.appInfo["jd"];
break;
default:
break;
......
module.exports = {
"appid": "201911061258",
"appid": "201911251551",
"label": "知产渠道api web应用",
"config": {
"rstree": {
......
......@@ -13,9 +13,9 @@ var ENVINPUT = {
};
var settings = {
env: ENVINPUT.APP_ENV,
appKey: "201911061258",
appKey: "201911251551",
paasKey: "wx76a324c5d201d1a4",
secret: "1671ab5405fa49c8b5dd0b0c55c279b8",
secret: "56006077354d48858026c80c0e10bef6",
salt: "%iatpD1gcxz7iF#B",
basepath: path.normalize(path.join(__dirname, '../..')),
port: process.env.NODE_PORT || 4004,
......
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