Commit 99793a7f by linboxuan

update ucommune getUserInfo log

parent ad410254
...@@ -26,6 +26,12 @@ class UtilsUcommuneService extends AppServiceBase { ...@@ -26,6 +26,12 @@ class UtilsUcommuneService extends AppServiceBase {
* @param {*} actionBody userToken 为优客工厂的userToken * @param {*} actionBody userToken 为优客工厂的userToken
*/ */
async getUserInfo(pobj, actionBody) { 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) { if (!actionBody.userToken) {
return system.getResult(null, "actionBody.token can not be empty,100410"); return system.getResult(null, "actionBody.token can not be empty,100410");
} }
...@@ -44,8 +50,20 @@ class UtilsUcommuneService extends AppServiceBase { ...@@ -44,8 +50,20 @@ class UtilsUcommuneService extends AppServiceBase {
if (tmpOpResult.status != 0 && tmpOpResult.status != 2060) { if (tmpOpResult.status != 0 && tmpOpResult.status != 2060) {
return tmpOpResult; 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 }) return system.getResultSuccess({ userpin: tmpOpResult.data.userpin ? tmpOpResult.data.userpin : pobj.actionBody.userpin })
} else { } 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); 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