|
|
@@ -321,7 +321,7 @@ class Employee extends Controller
|
|
|
if (!$Employee) {
|
|
|
return json_send(['code' => 'error', 'msg' => '记录不存在']);
|
|
|
}
|
|
|
- if($is_admin == 1 && $admin_id == $Employee->uid){
|
|
|
+ if($is_admin == 1 && $admin_id == $Employee->id){
|
|
|
return json_send(['code' => 'error', 'msg' => '不能修改自己的状态']);
|
|
|
}
|
|
|
$Employee->status = $status;
|