yingzi vor 2 Jahren
Ursprung
Commit
0120e9f6d4
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      app/api/controller/Pay.php

+ 2 - 1
app/api/controller/Pay.php

@@ -18,11 +18,12 @@ class Pay extends BaseController{
      * @return boolean
      */
     public function wxpayNotify(Request $request){
+        $logfile = app()->getRootPath().'public/log/wxnotify.log';
+        file_put_contents($logfile, date("Y-m-d H:i:s").PHP_EOL,FILE_APPEND | LOCK_EX);
         $xmlData = $request->getInput();
         if(empty($xmlData)){
             return false;
         }
-        $logfile = app()->getRootPath().'public/log/wxnotify.log';
         file_put_contents($logfile, $xmlData.PHP_EOL,FILE_APPEND | LOCK_EX);