|
|
@ -29,6 +29,7 @@ class UserInfoService implements UserInfoServiceInterface |
|
|
public function do($userId, $iv, $encryptedData) |
|
|
public function do($userId, $iv, $encryptedData) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
$ssdb = ApplicationContext::getContainer()->get(SSDBTask::class); |
|
|
$ssdb = ApplicationContext::getContainer()->get(SSDBTask::class); |
|
|
$user = $ssdb->exec('hgetall', SsdbKeys::USER_INFO.$userId); |
|
|
$user = $ssdb->exec('hgetall', SsdbKeys::USER_INFO.$userId); |
|
|
|
|
|
|
|
|
@ -63,6 +64,10 @@ class UserInfoService implements UserInfoServiceInterface |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return $res; |
|
|
return $res; |
|
|
|
|
|
} catch (\Exception $e) { |
|
|
|
|
|
throw new ErrorCodeException(ErrorCode::USER_INFO_UPDATE_ERROR,'更新用户信息失败',['error_msg' => $e->getMessage()]); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function check($userId) |
|
|
public function check($userId) |
|
|
|