瀏覽代碼

配置代理

陈德本 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);
     }
 
 }