Commit 7083c362 by 宋毅

tj

parent 92e52c36
......@@ -9,7 +9,7 @@ class tmqueryCtl extends CtlBase {
this.appInfo = {
jd: { appkey: "201911251551", secret: "56006077354d48858026c80c0e10bef6" },
1688: { appkey: "201911131657", secret: "eeb18393aade40149287b024d8ba0850" },
gsb: { appkey: "201912141625", secret: "8cbb846776874167b5c7e01cd0116c66" }
gsbhome: { appkey: "201912141625", secret: "8cbb846776874167b5c7e01cd0116c66" }
};
this.execClient = system.getObject("util.execClient");
......@@ -118,7 +118,7 @@ class tmqueryCtl extends CtlBase {
var opJdPayPageInfoResult = await this.opJdPayPageInfo(pobj, result, req);
return opJdPayPageInfoResult;
}
else if (["gsb"].indexOf(pobj.actionProcess) >= 0 && pobj.actionType == "subTmOrder") {
else if (["gsbhome"].indexOf(pobj.actionProcess) >= 0 && pobj.actionType == "subTmOrder") {
var opGsbPayPageInfoResult = await this.opGsbPayPageInfo(pobj, result, req);
return opGsbPayPageInfoResult;
}
......@@ -140,8 +140,8 @@ class tmqueryCtl extends CtlBase {
case "1688":
reqParam = self.appInfo["1688"];
break;
case "gsb":
reqParam = self.appInfo["gsb"];
case "gsbhome":
reqParam = self.appInfo["gsbhome"];
break;
default:
break;
......
......@@ -166,8 +166,8 @@ module.exports = function (app) {
res.redirect(skipUrl);
});
app.get("/gsb", async function (req, res) {
var skipUrl = "/#/gsb/selftmreg?channelUserId=";
app.get("/gsbhome", async function (req, res) {
var skipUrl = "/#/gsbhome/selftmreg?channelUserId=";
var params = req.query;
if (!params.state) {
res.redirect(skipUrl);
......@@ -191,7 +191,7 @@ module.exports = function (app) {
return;
}
var getUserparams = {
actionProcess: "gsb",
actionProcess: "gsbhome",
channelUserId: userInfo.data.phone + "_" + userInfo.data.id
};
var userItemResult = await tmqueryCtl.getUserIdEncryptStr(getUserparams, req.query, req);
......@@ -199,10 +199,10 @@ module.exports = function (app) {
res.redirect(skipUrl);
return;
}
skipUrl = "/#/gsb/" + params.state + "?channelUserId=" + encodeURIComponent(userItemResult.data.encryptChannelUserId);
skipUrl = "/#/gsbhome/" + params.state + "?channelUserId=" + encodeURIComponent(userItemResult.data.encryptChannelUserId);
res.redirect(skipUrl);
});
app.get("/gsb/orderNotify", async function (req, res) {
app.get("/gsbhome/orderNotify", async function (req, res) {
logClient.payLog("jd", {
optitle: "###操作订单结果参数...orderNotify",
op: "/jd/orderNotify",
......
......@@ -1286,7 +1286,7 @@
this.form.tmName = this.form.tmFormType == "5" ? this.form.tmName + '及图' : this.form.tmName;
this.savehistory();
console.log(this.$root.channelName, "///////////////");
if (this.$root.channelName == "jd" || this.$root.channelName == "gsb") {
if (this.$root.channelName == "jd" || this.$root.channelName == "gsbhome") {
/**提报接口 */
var obj = {
......
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