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