Robin vor 6 Jahren
Ursprung
Commit
684baa0874

+ 1 - 1
normandcrm/service/backend/controllers/MemberController.php

@@ -185,7 +185,7 @@ class MemberController extends BaseController
                 $Mt4ManagerApi = new Mt4ManagerApi();
                 $Mt4ManagerApi = new Mt4ManagerApi();
                 $res2 = $Mt4ManagerApi->changePassword($openModel->mt4_login,$data['mtpassword']);
                 $res2 = $Mt4ManagerApi->changePassword($openModel->mt4_login,$data['mtpassword']);
                 // 成功
                 // 成功
-                if($res1&& !$res2){
+                if($res1&& !$res2['ret']){
                     return $this->outJson(1, [], '操作成功');
                     return $this->outJson(1, [], '操作成功');
                 }
                 }
 
 

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

@@ -104,8 +104,6 @@ class Mt4ManagerApi
         $mt4_pay_ip = $config['mt4_pay_ip'];                     //获取mt4出入金ip
         $mt4_pay_ip = $config['mt4_pay_ip'];                     //获取mt4出入金ip
         $mt4_pay_port = $config['mt4_pay_port'];                 //获取出入金端口
         $mt4_pay_port = $config['mt4_pay_port'];                 //获取出入金端口
         $this->url = "http://{$mt4_pay_ip}:{$mt4_pay_port}/api";
         $this->url = "http://{$mt4_pay_ip}:{$mt4_pay_port}/api";
-        $result = json_encode($this->_httpRequest($this->url, $params));
-        file_put_contents('1014log.txt',$result);
         return $this->_httpRequest($this->url, $params);
         return $this->_httpRequest($this->url, $params);
     }
     }