Commit c230d048 by 孙亚楠

dd

parent 905573b2
......@@ -32,6 +32,17 @@ class ChuangfuApplet extends AppletBase {
return user;
}
async getUserInfo(openid, merchantId) {
merchantId = this.merchantId;
let key;
if (merchantId) {
key = merchantId + "_" + openid;
} else {
key = openid;
}
return this.cacheManager["AppletUserinfoCache"].get(key);
}
// 登录接口 post
async login(o, obj, req) {
try {
......@@ -101,10 +112,12 @@ class ChuangfuApplet extends AppletBase {
}
async commonInfo(gobj, pobj, req, loginUser) {
var user = await this.bmuserSve.findById(loginUser.id);
return {
code: 1,
code : 1,
data: {
telphone: "15210210265"
telphone: "15210210265",
isAuditor: user.isAuditor
}
};
}
......
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