Browse Source

修复撤销出金接口

Robin 6 years ago
parent
commit
c28be0cc26
1 changed files with 2 additions and 2 deletions
  1. 2 2
      normandcrm/service/common/lib/Mt4ManagerApi.php

+ 2 - 2
normandcrm/service/common/lib/Mt4ManagerApi.php

@@ -118,7 +118,7 @@ class Mt4ManagerApi
         );
         $config = Config::findOne(1);                   //获取到配置文件
         $mt4_pay_ip = $config['mt4_pay_ip'];                     //获取mt4出入金ip
-        $mt4_pay_port = 10001;                 //获取出入金端口
+        $mt4_pay_port = $config['mt4_pay_port'] +1;                 //获取出入金端口
         $this->url = "http://{$mt4_pay_ip}:{$mt4_pay_port}/api";
         return $this->_httpRequest($this->url, $params);
     }
@@ -131,7 +131,7 @@ class Mt4ManagerApi
         );
         $config = Config::findOne(1);                   //获取到配置文件
         $mt4_pay_ip = $config['mt4_pay_ip'];                     //获取mt4出入金ip
-        $mt4_pay_port = 10001;                 //获取出入金端口
+        $mt4_pay_port = $config['mt4_pay_port'] +1;                 //获取出入金端口
         $this->url = "http://{$mt4_pay_ip}:{$mt4_pay_port}/api";
         return $this->_httpRequest($this->url, $params);
     }