lqmac 4 months ago
parent 5ba7327e98
commit 704f4d712d
  1. 2
      app/admin/model/Store.php
  2. 4
      app/common.php
  3. 14
      app/store/controller/store/User.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
];

@ -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));

@ -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),

Loading…
Cancel
Save