Commit 8099682c by 孙亚楠

dd

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