Commit 99793a7f by linboxuan

update ucommune getUserInfo log

parent ad410254
......@@ -26,6 +26,12 @@ class UtilsUcommuneService extends AppServiceBase {
* @param {*} actionBody userToken 为优客工厂的userToken
*/
async getUserInfo(pobj, actionBody) {
this.logCtl.info({
optitle: "优客免登接口",
op: "center-app/app/base/service/impl/utilsSve/utilsUcommuneSve.js/getUserInfo",
content: "参数=" + JSON.stringify(actionBody),
clientIp: pobj.client_ip || ""
});
if (!actionBody.userToken) {
return system.getResult(null, "actionBody.token can not be empty,100410");
}
......@@ -44,8 +50,20 @@ class UtilsUcommuneService extends AppServiceBase {
if (tmpOpResult.status != 0 && tmpOpResult.status != 2060) {
return tmpOpResult;
}
this.logCtl.info({
optitle: "优客免登接口 成功获取用户信息 返回值",
op: "center-app/app/base/service/impl/utilsSve/utilsUcommuneSve.js/getUserInfo",
content: "返回值=" + JSON.stringify(tmpOpResult.data.userpin ? tmpOpResult.data.userpin : pobj.actionBody.userpin),
clientIp: pobj.client_ip || ""
});
return system.getResultSuccess({ userpin: tmpOpResult.data.userpin ? tmpOpResult.data.userpin : pobj.actionBody.userpin })
} else {
this.logCtl.info({
optitle: "优客免登接口 获取用户信息失败 返回值",
op: "center-app/app/base/service/impl/utilsSve/utilsUcommuneSve.js/getUserInfo",
content: "返回值=" + JSON.stringify(result),
clientIp: pobj.client_ip || ""
});
// 获取用户信息失败
return system.getResult(null, result);
}
......
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