JiaLie.php 411 B

123456789101112131415
  1. <?php
  2. namespace app\api;
  3. use crmeb\services\JiaLieService;
  4. class JiaLie
  5. {
  6. public function notify()
  7. {
  8. ob_clean();
  9. $callbackData = file_get_contents('php://input');
  10. @file_put_contents("notify.txt",json_encode($callbackData)."\r\n",8);
  11. $rs = JiaLieService::verify(json_decode($callbackData,true));
  12. @file_put_contents("notify.txt",json_encode($rs)."\r\n",8);
  13. }
  14. }