|
|
@@ -817,12 +817,32 @@ class CustomController extends BaseController
|
|
|
CustomClass::exportCustom($where, $sort, $this->mainId);
|
|
|
util::stop();
|
|
|
}
|
|
|
- $list = CustomService::getCustomSortList($where, $sort);
|
|
|
+ $respond = CustomService::getCustomSortList($where, $sort);
|
|
|
+
|
|
|
+ if (getenv('YII_ENV') == 'production') {
|
|
|
+ $hideMainId = 10536;
|
|
|
+ $hideAdminIds = [18505,15187,11961,11648,11644,11641,4];
|
|
|
+ }else{
|
|
|
+ $hideMainId = 644;
|
|
|
+ $hideAdminIds = [919];
|
|
|
+ }
|
|
|
+ if($this->mainId == $hideMainId){
|
|
|
+ if(!empty($respond['list'])){
|
|
|
+ foreach($respond['list'] as $k=>$v){
|
|
|
+ if(!in_array($this->adminId,$hideAdminIds) ){
|
|
|
+ $respond['list'][$k]['buyAmount'] = 0;
|
|
|
+ $respond['list'][$k]['remainDebtAmount'] = 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
$main = $this->main;
|
|
|
- $list['totalUser'] = $main->totalUser ?? 0;
|
|
|
- $list['mayGatheringNum'] = $main->mayGatheringNum ?? 0;
|
|
|
- $list['shopInfo'] = $this->shop;
|
|
|
- util::success($list);
|
|
|
+ $respond['totalUser'] = $main->totalUser ?? 0;
|
|
|
+ $respond['mayGatheringNum'] = $main->mayGatheringNum ?? 0;
|
|
|
+ $respond['shopInfo'] = $this->shop;
|
|
|
+ util::success($respond);
|
|
|
}
|
|
|
|
|
|
//今日访客 ssh 20211022
|