From 2590dc5ba7a83c2ac699d2c961c832f4f1a2b1eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E5=98=89?= <445241500@qq.com> Date: Fri, 7 Jun 2024 17:00:51 +0800 Subject: [PATCH] 1 --- app/store/controller/Merchant.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/store/controller/Merchant.php b/app/store/controller/Merchant.php index 68d5773b..506f0771 100644 --- a/app/store/controller/Merchant.php +++ b/app/store/controller/Merchant.php @@ -54,15 +54,15 @@ class Merchant extends Controller if (!in_array($role['role_id'], $nowRoles)) { continue; } - - if (!empty($l['user_name'])) { - array_push($list, $l['user_name']); + + if (!empty($l['store_user_id'])) { + array_push($list, $l['store_user_id']); } } $model2 = new MerchantModel; $list2 = $model2->getList($this->request->param())->toArray(); - $userIds = array_column($list2['data'], "user_name"); + $userIds = array_column($list2['data'], "store_user_id"); $list = array_diff($list, $userIds); return $this->renderSuccess(compact('list'));