|
|
@@ -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操作失败');
|