Robin пре 6 година
родитељ
комит
751006ca64

+ 2 - 1
normandcrm/service/backend/controllers/DepositController.php

@@ -74,8 +74,9 @@ class DepositController extends BaseController
 
 
         $query->leftJoin('crm_mt4_deposit_log l','crm_deposit.id = l.log_id');
+        $query->where("l.mt4_order_id != ''");
         $query->select('crm_deposit.*,l.mt4_order_id');
-        // $query->andFilterWhere(['l.type' => 1]);
+
 
 
 

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

@@ -55,9 +55,10 @@ class WithdrawController extends BaseController
         }
 
         $query = Withdraw::find()->alias('a')->leftJoin('crm_mt4_deposit_log l','a.id = l.log_id')->orderBy('a.'.$data['orderBy']);
+
         $query->select('a.*,l.mt4_order_id');
         $query->andFilterWhere(['a.type' => $data['type']]);
-        // $query->andFilterWhere(['l.type' => 2]);
+
         if ($data['from'] == 'admin') {
             $query->andFilterWhere(['a.member_id' => $data['memberId']]);
         } else {

+ 136 - 0
normandcrm/service/backend/runtime/logs/app.log

@@ -0,0 +1,136 @@
+2019-11-24 12:09:54 [127.0.0.1][-][-][error][Swift_TransportException] Swift_TransportException: Connection could not be established with host hwsmtp3.exmail.qq.com [Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? #499043604] in D:\CRM\normandcrm\service\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\StreamBuffer.php:268
+Stack trace:
+#0 D:\CRM\normandcrm\service\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\StreamBuffer.php(62): Swift_Transport_StreamBuffer->_establishSocketConnection()
+#1 D:\CRM\normandcrm\service\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\AbstractSmtpTransport.php(113): Swift_Transport_StreamBuffer->initialize(Array)
+#2 D:\CRM\normandcrm\service\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start()
+#3 D:\CRM\normandcrm\service\vendor\yiisoft\yii2-swiftmailer\Mailer.php(146): Swift_Mailer->send(Object(Swift_Message))
+#4 D:\CRM\normandcrm\service\vendor\yiisoft\yii2\mail\BaseMailer.php(262): yii\swiftmailer\Mailer->sendMessage(Object(yii\swiftmailer\Message))
+#5 D:\CRM\normandcrm\service\vendor\yiisoft\yii2\mail\BaseMessage.php(48): yii\mail\BaseMailer->send(Object(yii\swiftmailer\Message))
+#6 D:\CRM\normandcrm\service\backend\helpers\MailHelper.php(298): yii\mail\BaseMessage->send()
+#7 D:\CRM\normandcrm\service\backend\helpers\MailHelper.php(42): backend\helpers\MailHelper::sendSimpleMail('\xE5\x85\xA5\xE9\x87\x91\xE5\xA4\xB1\xE8\xB4\xA5\xE6\x8A\xA5...', Array, 'do.not.reply@me...', '<table><tr><td>...', Array, 'do.not.reply')
+#8 D:\CRM\normandcrm\service\common\lib\Mt4Deposit.php(316): backend\helpers\MailHelper::sendMail('\xE5\x85\xA5\xE9\x87\x91\xE5\xA4\xB1\xE8\xB4\xA5\xE6\x8A\xA5...', Array, Array, 'do.not.reply', '<table><tr><td>...')
+#9 D:\CRM\normandcrm\service\common\lib\Mt4Deposit.php(108): common\lib\Mt4Deposit->sendMail('\xE5\x85\xA5\xE9\x87\x91\xE5\xA4\xB1\xE8\xB4\xA5\xE6\x8A\xA5...', Array)
+#10 D:\CRM\normandcrm\service\common\helpers\MtKit.php(43): common\lib\Mt4Deposit->deposit(601, '100.19', 'Deposit', 13346)
+#11 D:\CRM\normandcrm\service\backend\controllers\DepositController.php(135): common\helpers\MtKit::deposit(601, '100.19', 'Deposit', 13346)
+#12 [internal function]: backend\controllers\DepositController->actionPatchIntoGold()
+#13 D:\CRM\normandcrm\service\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)
+#14 D:\CRM\normandcrm\service\vendor\yiisoft\yii2\base\Controller.php(156): yii\base\InlineAction->runWithParams(Array)
+#15 D:\CRM\normandcrm\service\vendor\yiisoft\yii2\base\Module.php(523): yii\base\Controller->runAction('patch-into-gold', Array)
+#16 D:\CRM\normandcrm\service\vendor\yiisoft\yii2\web\Application.php(102): yii\base\Module->runAction('deposit/patch-i...', Array)
+#17 D:\CRM\normandcrm\service\vendor\yiisoft\yii2\base\Application.php(380): yii\web\Application->handleRequest(Object(yii\web\Request))
+#18 D:\CRM\normandcrm\service\backend\web\index.php(17): yii\base\Application->run()
+#19 {main}
+2019-11-24 12:09:52 [127.0.0.1][-][-][info][application] $_POST = [
+    'admin_name' => '管理员'
+    'id' => '13346'
+    'token' => '895ad72dc760d7bfe0205abd19c5cf06'
+]
+
+$_SERVER = [
+    'PATH' => 'C:\\Program Files (x86)\\Common Files\\NetSarang;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NGX;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;D:\\soft\\Git\\cmd;D:\\soft\\phpstudy\\PHPTutorial\\php\\php-7.1.13-nts;C:\\composer;D:\\soft\\nodejs\\;D:\\go\\bin;C:\\Users\\user\\AppData\\Local\\Microsoft\\WindowsApps;D:\\soft\\Microsoft VS Code\\bin;D:\\soft\\PyCharm 2018.3.2\\bin;C:\\Users\\user\\AppData\\Roaming\\Composer\\vendor\\bin;C:\\Users\\user\\AppData\\Roaming\\npm'
+    'SYSTEMROOT' => 'C:\\Windows'
+    'COMSPEC' => 'C:\\Windows\\system32\\cmd.exe'
+    'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
+    'WINDIR' => 'C:\\Windows'
+    'PHP_FCGI_MAX_REQUESTS' => '1000'
+    'PHPRC' => 'C:/phpStudy/PHPTutorial/php/php-7.0.12-nts/'
+    '_FCGI_SHUTDOWN_EVENT_' => '2428'
+    'SCRIPT_NAME' => '/index.php'
+    'REQUEST_URI' => '/deposit/patch-into-gold'
+    'QUERY_STRING' => ''
+    'REQUEST_METHOD' => 'POST'
+    'SERVER_PROTOCOL' => 'HTTP/1.0'
+    'GATEWAY_INTERFACE' => 'CGI/1.1'
+    'REDIRECT_URL' => '/deposit/patch-into-gold'
+    'REMOTE_PORT' => '8752'
+    'SCRIPT_FILENAME' => 'D:/CRM/normandcrm/service/backend/web/index.php'
+    'SERVER_ADMIN' => 'admin@php.cn'
+    'CONTEXT_DOCUMENT_ROOT' => 'D:/CRM/normandcrm/service/backend/web'
+    'CONTEXT_PREFIX' => ''
+    'REQUEST_SCHEME' => 'http'
+    'DOCUMENT_ROOT' => 'D:/CRM/normandcrm/service/backend/web'
+    'REMOTE_ADDR' => '127.0.0.1'
+    'SERVER_PORT' => '80'
+    'SERVER_ADDR' => '127.0.0.1'
+    'SERVER_NAME' => 'crm.service.com'
+    'SERVER_SOFTWARE' => 'Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9'
+    'SERVER_SIGNATURE' => ''
+    'SystemRoot' => 'C:\\Windows'
+    'CONTENT_TYPE' => 'application/x-www-form-urlencoded; charset=UTF-8'
+    'CONTENT_LENGTH' => '86'
+    'HTTP_CONNECTION' => 'close'
+    'HTTP_HOST' => 'crm.service.com'
+    'REDIRECT_STATUS' => '200'
+    'FCGI_ROLE' => 'RESPONDER'
+    'PHP_SELF' => '/index.php'
+    'REQUEST_TIME_FLOAT' => 1574597392.2179
+    'REQUEST_TIME' => 1574597392
+]
+2019-11-24 12:11:39 [127.0.0.1][-][-][error][Swift_TransportException] Swift_TransportException: Connection could not be established with host hwsmtp3.exmail.qq.com [Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? #499043604] in D:\CRM\normandcrm\service\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\StreamBuffer.php:268
+Stack trace:
+#0 D:\CRM\normandcrm\service\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\StreamBuffer.php(62): Swift_Transport_StreamBuffer->_establishSocketConnection()
+#1 D:\CRM\normandcrm\service\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\AbstractSmtpTransport.php(113): Swift_Transport_StreamBuffer->initialize(Array)
+#2 D:\CRM\normandcrm\service\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start()
+#3 D:\CRM\normandcrm\service\vendor\yiisoft\yii2-swiftmailer\Mailer.php(146): Swift_Mailer->send(Object(Swift_Message))
+#4 D:\CRM\normandcrm\service\vendor\yiisoft\yii2\mail\BaseMailer.php(262): yii\swiftmailer\Mailer->sendMessage(Object(yii\swiftmailer\Message))
+#5 D:\CRM\normandcrm\service\vendor\yiisoft\yii2\mail\BaseMessage.php(48): yii\mail\BaseMailer->send(Object(yii\swiftmailer\Message))
+#6 D:\CRM\normandcrm\service\backend\helpers\MailHelper.php(298): yii\mail\BaseMessage->send()
+#7 D:\CRM\normandcrm\service\backend\helpers\MailHelper.php(42): backend\helpers\MailHelper::sendSimpleMail('\xE5\x85\xA5\xE9\x87\x91\xE5\xA4\xB1\xE8\xB4\xA5\xE6\x8A\xA5...', Array, 'do.not.reply@me...', '<table><tr><td>...', Array, 'do.not.reply')
+#8 D:\CRM\normandcrm\service\common\lib\Mt4Deposit.php(316): backend\helpers\MailHelper::sendMail('\xE5\x85\xA5\xE9\x87\x91\xE5\xA4\xB1\xE8\xB4\xA5\xE6\x8A\xA5...', Array, Array, 'do.not.reply', '<table><tr><td>...')
+#9 D:\CRM\normandcrm\service\common\lib\Mt4Deposit.php(108): common\lib\Mt4Deposit->sendMail('\xE5\x85\xA5\xE9\x87\x91\xE5\xA4\xB1\xE8\xB4\xA5\xE6\x8A\xA5...', Array)
+#10 D:\CRM\normandcrm\service\common\helpers\MtKit.php(43): common\lib\Mt4Deposit->deposit(601, '100.19', 'Deposit', 13346)
+#11 D:\CRM\normandcrm\service\backend\controllers\DepositController.php(136): common\helpers\MtKit::deposit(601, '100.19', 'Deposit', 13346)
+#12 [internal function]: backend\controllers\DepositController->actionPatchIntoGold()
+#13 D:\CRM\normandcrm\service\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)
+#14 D:\CRM\normandcrm\service\vendor\yiisoft\yii2\base\Controller.php(156): yii\base\InlineAction->runWithParams(Array)
+#15 D:\CRM\normandcrm\service\vendor\yiisoft\yii2\base\Module.php(523): yii\base\Controller->runAction('patch-into-gold', Array)
+#16 D:\CRM\normandcrm\service\vendor\yiisoft\yii2\web\Application.php(102): yii\base\Module->runAction('deposit/patch-i...', Array)
+#17 D:\CRM\normandcrm\service\vendor\yiisoft\yii2\base\Application.php(380): yii\web\Application->handleRequest(Object(yii\web\Request))
+#18 D:\CRM\normandcrm\service\backend\web\index.php(17): yii\base\Application->run()
+#19 {main}
+2019-11-24 12:11:36 [127.0.0.1][-][-][info][application] $_POST = [
+    'admin_name' => '管理员'
+    'id' => '13346'
+    'token' => '895ad72dc760d7bfe0205abd19c5cf06'
+]
+
+$_SERVER = [
+    'PATH' => 'C:\\Program Files (x86)\\Common Files\\NetSarang;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NGX;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;D:\\soft\\Git\\cmd;D:\\soft\\phpstudy\\PHPTutorial\\php\\php-7.1.13-nts;C:\\composer;D:\\soft\\nodejs\\;D:\\go\\bin;C:\\Users\\user\\AppData\\Local\\Microsoft\\WindowsApps;D:\\soft\\Microsoft VS Code\\bin;D:\\soft\\PyCharm 2018.3.2\\bin;C:\\Users\\user\\AppData\\Roaming\\Composer\\vendor\\bin;C:\\Users\\user\\AppData\\Roaming\\npm'
+    'SYSTEMROOT' => 'C:\\Windows'
+    'COMSPEC' => 'C:\\Windows\\system32\\cmd.exe'
+    'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
+    'WINDIR' => 'C:\\Windows'
+    'PHP_FCGI_MAX_REQUESTS' => '1000'
+    'PHPRC' => 'C:/phpStudy/PHPTutorial/php/php-7.0.12-nts/'
+    '_FCGI_SHUTDOWN_EVENT_' => '2428'
+    'SCRIPT_NAME' => '/index.php'
+    'REQUEST_URI' => '/deposit/patch-into-gold'
+    'QUERY_STRING' => ''
+    'REQUEST_METHOD' => 'POST'
+    'SERVER_PROTOCOL' => 'HTTP/1.0'
+    'GATEWAY_INTERFACE' => 'CGI/1.1'
+    'REDIRECT_URL' => '/deposit/patch-into-gold'
+    'REMOTE_PORT' => '8821'
+    'SCRIPT_FILENAME' => 'D:/CRM/normandcrm/service/backend/web/index.php'
+    'SERVER_ADMIN' => 'admin@php.cn'
+    'CONTEXT_DOCUMENT_ROOT' => 'D:/CRM/normandcrm/service/backend/web'
+    'CONTEXT_PREFIX' => ''
+    'REQUEST_SCHEME' => 'http'
+    'DOCUMENT_ROOT' => 'D:/CRM/normandcrm/service/backend/web'
+    'REMOTE_ADDR' => '127.0.0.1'
+    'SERVER_PORT' => '80'
+    'SERVER_ADDR' => '127.0.0.1'
+    'SERVER_NAME' => 'crm.service.com'
+    'SERVER_SOFTWARE' => 'Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9'
+    'SERVER_SIGNATURE' => ''
+    'SystemRoot' => 'C:\\Windows'
+    'CONTENT_TYPE' => 'application/x-www-form-urlencoded; charset=UTF-8'
+    'CONTENT_LENGTH' => '86'
+    'HTTP_CONNECTION' => 'close'
+    'HTTP_HOST' => 'crm.service.com'
+    'REDIRECT_STATUS' => '200'
+    'FCGI_ROLE' => 'RESPONDER'
+    'PHP_SELF' => '/index.php'
+    'REQUEST_TIME_FLOAT' => 1574597496.9444
+    'REQUEST_TIME' => 1574597496
+]