Commit 2bda75c0 by Sxy

fix: 免登

parent 9bc94793
......@@ -104,6 +104,11 @@ module.exports = function (app) {
if (!sourceUser.employee || !sourceUser.name || !sourceUser.roles) {
res.json(System.getResult(null, "参数有误,请联系技术人员"));
}
let companykey = req.body.companykey.trim();
if (!companykey) {
res.json(System.getResult(null, "没有公司宝的租户companykey,请联系资质宝服务提供方"));
return
}
console.log(sourceUser);
let openid = sourceUser.employee;
let userName = openid;
......
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