mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
升级TP6RC5;修复删除用户没删除头像问题;
This commit is contained in:
@@ -144,7 +144,11 @@ class User extends Common
|
||||
{
|
||||
//
|
||||
|
||||
AppUser::destroy($id);
|
||||
$model_user = AppUser::find($id);
|
||||
|
||||
UploadFiles::delete($model_user->getData('avatar'));
|
||||
|
||||
$model_user->delete();
|
||||
|
||||
return json_message();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user