lqmac 6 months ago
commit a433bf0fc9
  1. 8
      app/store/controller/Merchant.php

@ -54,15 +54,15 @@ class Merchant extends Controller
if (!in_array($role['role_id'], $nowRoles)) { if (!in_array($role['role_id'], $nowRoles)) {
continue; continue;
} }
if (!empty($l['user_name'])) { if (!empty($l['store_user_id'])) {
array_push($list, $l['user_name']); array_push($list, $l['store_user_id']);
} }
} }
$model2 = new MerchantModel; $model2 = new MerchantModel;
$list2 = $model2->getList($this->request->param())->toArray(); $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); $list = array_diff($list, $userIds);
return $this->renderSuccess(compact('list')); return $this->renderSuccess(compact('list'));

Loading…
Cancel
Save