* Finish task #36495.

This commit is contained in:
holan20180123
2021-03-10 15:31:39 +08:00
parent 86055e545f
commit 0a9d1bb510
4 changed files with 7 additions and 6 deletions
+1
View File
@@ -1200,6 +1200,7 @@ class userModel extends model
$fileIdList = array_keys($uploadResult);
$file = $this->file->getByID($fileIdList[0]);
$this->dao->update(TABLE_USER)->set('avatar')->eq($file->webPath)->where('account')->eq($this->app->user->account)->exec();
return array('result' => 'success', 'message' => '', 'locate' => helper::createLink('user', 'cropavatar', "image={$file->id}"));
}