陈德本 преди 5 години
родител
ревизия
1a24c6b48f
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      App/Api/Controller/ReceivedSms.php

+ 4 - 1
App/Api/Controller/ReceivedSms.php

@@ -5,12 +5,15 @@ namespace Heanup\App\Api\Controller;
 
 
 use Heanup\App\Api\Controller;
+use Heanup\Frame\Logger;
 
 class ReceivedSms extends Controller
 {
     protected function main()
     {
-        file_put_contents(APP_DIR . "/test_msg.txt", file_get_contents("php://input").PHP_EOL,FILE_APPEND);
+        Logger::setLog(file_get_contents("php://input"),APP_DIR . "/test_msg.txt");
+        $this->showSuccess();
+//        file_put_contents(APP_DIR . "/test_msg.txt", file_get_contents("php://input").PHP_EOL,FILE_APPEND);
     }
 
 }