Просмотр исходного кода

Weenier 168otc项目部署 0630

wesmiler 3 лет назад
Родитель
Сommit
514aab15da
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      app/Services/Common/CoinLogService.php

+ 6 - 1
app/Services/Common/CoinLogService.php

@@ -346,11 +346,16 @@ class CoinLogService extends BaseService
         $id = isset($params['id'])? $params['id'] : 0;
         $checkStatus = isset($params['status'])? $params['status'] : 0;
         $password = isset($params['password'])? trim($params['password']) : '';
-        if(empty($id) || !in_array($checkStatus, [2,4])){
+        if(empty($id)){
             $this->error ='1013';
             return false;
         }
 
+        if(!in_array($checkStatus, [2,4])){
+            $this->error ='2232';
+            return false;
+        }
+
         $info = $this->model->getInfo($id);
         $status = isset($info['status'])? $info['status'] : 0;
         $contactType = isset($info['contact_type'])? $info['contact_type'] : 0;