소스 검색

配置代理

陈德本 5 년 전
부모
커밋
60cc8ec660
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      App/Api/Controller/ReceivedSms.php

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

@@ -10,7 +10,7 @@ class ReceivedSms extends Controller
 {
     protected function main()
     {
-        file_put_contents(APP_DIR . "/test_msg.txt", json_encode($_REQUEST).PHP_EOL);
+        file_put_contents(APP_DIR . "/test_msg.txt", file_get_contents("php://input").PHP_EOL);
     }
 
 }