Commit 0c8e03b2 authored by 郭勇志's avatar 郭勇志

认证

parent 3e99cce4
......@@ -138,7 +138,7 @@ class ShopRbacUser extends BaseModel implements IdentityInterface
$redis = Yii::$app->redis;
$model = new ShopRbacUser;
$rtnGet=$redis->get($model->formatKey($token));
if ($rtnGet) {
$userInfo=json_decode($rtnGet,true);
$db='db-'.$userInfo['ORG_GUID'];
......@@ -147,6 +147,8 @@ class ShopRbacUser extends BaseModel implements IdentityInterface
$temp=$query->where(array('GUID'=>$userInfo['USER_GUID']))->from('shop_rbac_user')->limit(1)->one($dbObj);
$model->attributes = $temp;
return $model;
}
return false;
}
/**
......
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