Browse Source

Wesmiler OTC 提交更新 0729

APPLE 3 years ago
parent
commit
2f71e6ee30
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/Http/Controllers/Admin/CoinLogController.php

+ 3 - 1
app/Http/Controllers/Admin/CoinLogController.php

@@ -30,9 +30,11 @@ class CoinLogController extends Backend
     {
         $pageSize = request()->post('limit', 15);
         $params = request()->all();
-        if($this->userInfo['user_type'] == 2){
+        $params['business_id'] = isset($params['business_id'])? $params['business_id'] : 0;
+        if($this->userInfo['user_type'] == 2 && empty($params['business_id'])){
             $params['business_id'] = $this->userInfo['user_id'];
         }
+
         $list = $this->service->getDataList($params, $pageSize);
         $message = array(
             "msg" => '操作成功',