mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-21 22:39:16 +08:00
修改日志描述
This commit is contained in:
parent
5eb2439e01
commit
4452bfd77a
@ -106,7 +106,7 @@ class Admin extends Controller
|
||||
$user = $this->app->db->name($this->table)->where($map)->find();
|
||||
if (empty($user) || empty($user['pid0'])) $this->error('用户不符合操作要求!');
|
||||
[$status, $message] = UserUpgradeService::instance()->bindAgent($user['id'], $user['pid0']);
|
||||
$status && sysoplog('前端用户管理', "后台修改用户[{$map['id']}]的代理为永久状态");
|
||||
$status && sysoplog('前端用户管理', "修改用户[{$map['id']}]的代理为永久状态");
|
||||
empty($status) ? $this->error($message) : $this->success($message);
|
||||
}
|
||||
|
||||
@ -134,7 +134,7 @@ class Admin extends Controller
|
||||
} else {
|
||||
$data = $this->_vali(['pid.require' => '待绑定代理不能为空!', 'uid.require' => '待操作用户不能为空!']);
|
||||
[$status, $message] = UserUpgradeService::instance()->bindAgent($data['uid'], $data['pid'], 2);
|
||||
$status && sysoplog('前端用户管理', "后台修改用户[{$data['uid']}]的代理为[{$data['pid']}]");
|
||||
$status && sysoplog('前端用户管理', "修改用户[{$data['uid']}]的代理为用户[{$data['pid']}]");
|
||||
empty($status) ? $this->error($message) : $this->success($message);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user