From fdf92ed3c9bf9d4dbed1bbe3a0ca285f489f8255 Mon Sep 17 00:00:00 2001 From: vguanyiwgd Date: Sat, 11 May 2024 16:37:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9C=E8=8E=9E=E7=94=B5=E4=BF=A1=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8C=87=E5=AE=9A=E7=94=A8=E6=88=B7=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E6=89=8D=E8=83=BD=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If629aecdc342be714c6e0ba600c9704eefc67d9c --- .../api/controllers/api/Recharge.php | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/backstage/application/api/controllers/api/Recharge.php b/backstage/application/api/controllers/api/Recharge.php index 4dc4690..3bf7b88 100644 --- a/backstage/application/api/controllers/api/Recharge.php +++ b/backstage/application/api/controllers/api/Recharge.php @@ -352,12 +352,22 @@ class Recharge extends REST_Controller $zy_type_id = intval($a[1]); // 代码写死,东莞电信 company_id = 15 必须 supplier_id = 28,否则不符合余额转移 - if($this->user->company_id == 15 && $zy_supplier_id != 28){ - $this->response(array( - 'status' => 0, - 'message' => '当前只能转移公诚物业的积分账户', - 'data' => array() - ), REST_Controller::HTTP_OK); + if($this->user->company_id == 15){ + if($zy_supplier_id != 28){ + $this->response(array( + 'status' => 0, + 'message' => '当前只能转移公诚物业的积分账户', + 'data' => array() + ), REST_Controller::HTTP_OK); + } + if(!in_array($this->user->type_id, [200,201,202,204,206,208,218,224,225,234,239,272])){ + $this->response(array( + 'status' => 0, + 'message' => '您的用户类型不支持余额转移功能', + 'data' => array() + ), REST_Controller::HTTP_OK); + } + } $row = $this->Common_model->sql_get_one("select * from tb_account where supplier_id = {$zy_supplier_id} and type_id={$zy_type_id} and user_id = ".$this->user->id);