|
@@ -5,12 +5,15 @@ namespace Heanup\App\Api\Controller;
|
|
|
|
|
|
|
|
|
|
|
|
|
use Heanup\App\Api\Controller;
|
|
use Heanup\App\Api\Controller;
|
|
|
|
|
+use Heanup\Frame\Logger;
|
|
|
|
|
|
|
|
class ReceivedSms extends Controller
|
|
class ReceivedSms extends Controller
|
|
|
{
|
|
{
|
|
|
protected function main()
|
|
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);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|