mirror of
				https://gitee.com/zoujingli/ThinkAdmin.git
				synced 2025-10-31 04:02:07 +08:00 
			
		
		
		
	Update User.php
This commit is contained in:
		
							parent
							
								
									08e1ac75dd
								
							
						
					
					
						commit
						f2aaa98331
					
				| @ -18,6 +18,7 @@ namespace app\admin\controller; | |||||||
| 
 | 
 | ||||||
| use think\admin\Controller; | use think\admin\Controller; | ||||||
| use think\admin\service\AdminService; | use think\admin\service\AdminService; | ||||||
|  | use think\admin\service\SystemService; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  * 系统用户管理 |  * 系统用户管理 | ||||||
| @ -213,7 +214,11 @@ class User extends Controller | |||||||
|         if ($result) { |         if ($result) { | ||||||
|             $id = input('id') ?: 0; |             $id = input('id') ?: 0; | ||||||
|             sysoplog('系统用户管理', "修改系统用户[{$id}]成功"); |             sysoplog('系统用户管理', "修改系统用户[{$id}]成功"); | ||||||
|             $this->success('用户资料修改成功!', 'javascript:location.reload()'); |             if ($id == AdminService::instance()->getUserId()) { | ||||||
|  |                 $this->success('用户资料修改成功!', 'javascript:location.reload()'); | ||||||
|  |             } else { | ||||||
|  |                 $this->success('用户资料修改成功!'); | ||||||
|  |             } | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user