mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 基类函数
This commit is contained in:
parent
cdb21ae3a6
commit
df6af7f4da
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user