modified 基类函数

This commit is contained in:
Zhao 2021-07-28 08:33:10 +00:00 committed by Gitee
parent cdb21ae3a6
commit df6af7f4da

View File

@ -57,7 +57,7 @@ class Base extends BaseController {
* @author zhaoxiang <zhaoxiang051405@gmail.com> * @author zhaoxiang <zhaoxiang051405@gmail.com>
*/ */
public function updateUserInfo(array $data, bool $isDetail = false): void { public function updateUserInfo(array $data, bool $isDetail = false): void {
$apiAuth = $this->request->header('apiAuth'); $apiAuth = $this->request->header('Api-Auth');
if ($isDetail) { if ($isDetail) {
AdminUserData::update($data, ['uid' => $this->userInfo['id']]); AdminUserData::update($data, ['uid' => $this->userInfo['id']]);
$this->userInfo['userData'] = (new AdminUserData())->where('uid', $this->userInfo['id'])->find(); $this->userInfo['userData'] = (new AdminUserData())->where('uid', $this->userInfo['id'])->find();