From 704f4d712d24a85b48db27c298d821f2561d20ac Mon Sep 17 00:00:00 2001 From: lqmac Date: Sun, 21 Jul 2024 23:22:11 +0800 Subject: [PATCH] 1 --- app/admin/model/Store.php | 2 +- app/common.php | 4 ++-- app/store/controller/store/User.php | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/admin/model/Store.php b/app/admin/model/Store.php index 544334c5..e09abdcd 100644 --- a/app/admin/model/Store.php +++ b/app/admin/model/Store.php @@ -107,7 +107,7 @@ class Store extends StoreModel 10052,10205,10054,10189,10055,10223,10139,10252,10056,10058, 10059,10057,10201,10238,10241,10239,10240,10242,10202,10203, 10206,10207,10208,10209,10213,10210,10211,10115,10247,10248, - 10249,10285,10039 + 10285,10039 ], 'store_id' => $storeId ]; diff --git a/app/common.php b/app/common.php index e0fb5ab3..3512702d 100644 --- a/app/common.php +++ b/app/common.php @@ -578,8 +578,8 @@ function httpRequest($url, $method="GET", $postfields = null, $headers = array() $requestinfo = curl_getinfo($ci); $http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE); $curl_error = curl_errno($ci); - var_dump($response); - var_dump($curl_error); + // var_dump($response); + // var_dump($curl_error); //exit; if($curl_error){ Log::error("ERROR_CODE:{$curl_error} | URL:".$url.' | postfields:'.json_encode($postfields)); diff --git a/app/store/controller/store/User.php b/app/store/controller/store/User.php index a37d4969..d50ba77d 100644 --- a/app/store/controller/store/User.php +++ b/app/store/controller/store/User.php @@ -39,13 +39,13 @@ class User extends Controller $storeUserId = StoreUserService::getLoginUserId(); $roles = StoreRoleService::getLoginPermissions(); $modules = StoreModuleModel::getModules(); - if ($roles['isSuper'] == 1) { - $modules = array_flip($modules); - // var_dump($modules1); - // exit(); - unset($modules['apps-collector']); - $modules = array_keys($modules); - } + // if ($roles['isSuper'] == 1) { + // $modules = array_flip($modules); + // // var_dump($modules1); + // // exit(); + // unset($modules['apps-collector']); + // $modules = array_keys($modules); + // } return $this->renderSuccess([ // 用户信息 'userInfo' => StoreUserModel::detail($storeUserId),