提交 3d6fea16 编写于 作者: G gongfuxiang

防止非法修改超管资料

上级 2aed3a67
......@@ -245,7 +245,13 @@ class AdminService
return DataReturn($ret, -1);
}
// 添加账号
// 是否非法修改超管
if($params['id'] == 1 && $params['id'] != $params['admin']['id'])
{
return DataReturn('非法操作', -1);
}
// 数据
$data = [
'mobile' => isset($params['mobile']) ? $params['mobile'] : '',
'gender' => intval($params['gender']),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册