Commit 8099682c by 孙亚楠

dd

parent 12745049
...@@ -75,9 +75,9 @@ class TestAPI extends APIBase { ...@@ -75,9 +75,9 @@ class TestAPI extends APIBase {
if (vcode != noteCode) { if (vcode != noteCode) {
return this.returnFail("短信验证码错误,请重新填写"); return this.returnFail("短信验证码错误,请重新填写");
} }
let openID = "gtbh5_" + obj.mobile; let openID = "gtbh5_" + obj.mobile;
let merchant_id = system.decryption(obj.merchant_id);
let merchant_id = system.decryption(decodeURIComponent(obj.merchant_id));
let params = { let params = {
saas_merchant_id: merchant_id, saas_merchant_id: merchant_id,
saas_id: null, saas_id: null,
...@@ -103,7 +103,7 @@ class TestAPI extends APIBase { ...@@ -103,7 +103,7 @@ class TestAPI extends APIBase {
//验证登录 //验证登录
async loginUser(obj) { async loginUser(obj) {
// let merchant_id = decodeURIComponent(obj.merchant_id); // let merchant_id = decodeURIComponent(obj.merchant_id);
let merchant_id = system.decryption(obj.merchant_id); let merchant_id = system.decryption(decodeURIComponent(obj.merchant_id));
let user = await this.getLoginUser(merchant_id, obj.openid); let user = await this.getLoginUser(merchant_id, obj.openid);
return this.returnSuccess(user); return this.returnSuccess(user);
} }
......
var fs = require("fs"); var fs = require("fs");
var objsettings = require("../config/objsettings"); var objsettings = require("../config/objsettings");
var settings = require("../config/settings"); var settings = require("../config/settings");
const crypto = require("crypto");
class System { class System {
static declare(ns) { static declare(ns) {
var ar = ns.split('.'); var ar = ns.split('.');
......
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