Browse Source

撤销出金完善

jace 6 years ago
parent
commit
f4d12511d1
1 changed files with 4 additions and 1 deletions
  1. 4 1
      normandcrm/service/backend/controllers/WithdrawController.php

+ 4 - 1
normandcrm/service/backend/controllers/WithdrawController.php

@@ -17,6 +17,8 @@ use Yii;
 use backend\models\MemberBankInfo;
 use common\lib\Mt4Deposit;
 
+use function GuzzleHttp\json_decode;
+
 class WithdrawController extends BaseController
 {
     /**
@@ -370,7 +372,8 @@ class WithdrawController extends BaseController
             //调用mt4的撤销出金接口
              $api = new Mt4ManagerApi();
              $result = $api->revokeOrder($mt4_id);
-             if(!$result){
+             $result = json_decode($result,true);
+             if(!$result['ret']){
                  return $this->outJson(1, [], '操作成功');
              }else{
                  return $this->outJson(0, [], 'mt4操作失败');