yingzi 3 年之前
父节点
当前提交
0120e9f6d4
共有 1 个文件被更改,包括 2 次插入1 次删除
  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);