Commit d75a9a75 by 宋毅

tj

parent 18875d74
...@@ -16,11 +16,12 @@ class AppUserPinByUserNameCache extends CacheBase { ...@@ -16,11 +16,12 @@ class AppUserPinByUserNameCache extends CacheBase {
async buildCacheVal(cachekey, inputkey, val, ex, ...items) { async buildCacheVal(cachekey, inputkey, val, ex, ...items) {
var actionBody = val.actionBody; var actionBody = val.actionBody;
var appInfo = val.appInfo; var appInfo = val.appInfo;
var channelUserId = actionBody.channelUserId ? actionBody.channelUserId : actionBody.userName;
var uUserName = actionBody.userName ? actionBody.userName : actionBody.channelUserId; var uUserName = actionBody.userName ? actionBody.userName : actionBody.channelUserId;
var uPassword = actionBody.userName ? actionBody.userName : actionBody.channelUserId;//uPassword var uPassword = actionBody.userName ? actionBody.userName : actionBody.channelUserId;//uPassword
var mobile = actionBody.mobile ? actionBody.mobile : actionBody.channelUserId; var mobile = actionBody.mobile ? actionBody.mobile : actionBody.channelUserId;
var userInfo = await this.appuserDao.getItemByChannelUserId(uUserName, appInfo.uapp_id); var userInfo = await this.appuserDao.getItemByChannelUserId(channelUserId, appInfo.uapp_id);
if (userInfo) { if (userInfo) {
if (userInfo.is_enabled != 1) { if (userInfo.is_enabled != 1) {
return system.getResult(null, "user to item is Disable !"); return system.getResult(null, "user to item is Disable !");
......
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