This commit is contained in:
oldHome 2025-06-27 17:31:11 +08:00
parent 6987d608b6
commit ac4fe6c172

View File

@ -245,10 +245,8 @@ class AdminController extends PublicController
*/
public function deleteAdmin()
{
//非总管理员 直接打断 退出
if ($this->tokenShop_id != C('powerId')) { //非总管理员
echo json_encode(array('status' => 0, 'msg' => '没有权限'));
exit;
if ($this->tokenShop_id != C('powerId')) {
$where['shop_id'] = $this->tokenShop_id; //非总管理员
}
if ($_REQUEST['idArr']) {