|
|
@@ -82,7 +82,7 @@ class Mt4ManagerApi
|
|
|
$data['login'] = trim($login);
|
|
|
|
|
|
|
|
|
- $config = Config::findOne(1); //获取到配置文件
|
|
|
+ $config = Config::findOne(1); //获取到配置文件
|
|
|
$mt4_pay_ip = $config['mt4_pay_ip']; //获取mt4出入金ip
|
|
|
$mt4_pay_port = $config['mt4_pay_port']; //获取出入金端口
|
|
|
$this->url = "http://{$mt4_pay_ip}:{$mt4_pay_port}/api";
|
|
|
@@ -100,7 +100,24 @@ class Mt4ManagerApi
|
|
|
'login' => trim($login),
|
|
|
'password' => trim($password),
|
|
|
);
|
|
|
- $config = Config::findOne(1); //获取到配置文件
|
|
|
+ $config = Config::findOne(1); //获取到配置文件
|
|
|
+ $mt4_pay_ip = $config['mt4_pay_ip']; //获取mt4出入金ip
|
|
|
+ $mt4_pay_port = $config['mt4_pay_port']; //获取出入金端口
|
|
|
+ $this->url = "http://{$mt4_pay_ip}:{$mt4_pay_port}/api";
|
|
|
+
|
|
|
+ return $this->_httpRequest($this->url, $params);
|
|
|
+ }
|
|
|
+
|
|
|
+ /*
|
|
|
+ * 删除mt4订单
|
|
|
+ */
|
|
|
+ public function revokeOrder($orders)
|
|
|
+ {
|
|
|
+ $params = array(
|
|
|
+ 'cmd' => 'deleteorders',
|
|
|
+ 'orders' => trim($orders),
|
|
|
+ );
|
|
|
+ $config = Config::findOne(1); //获取到配置文件
|
|
|
$mt4_pay_ip = $config['mt4_pay_ip']; //获取mt4出入金ip
|
|
|
$mt4_pay_port = $config['mt4_pay_port']; //获取出入金端口
|
|
|
$this->url = "http://{$mt4_pay_ip}:{$mt4_pay_port}/api";
|