WIN-2308041133\Administrator 6 月之前
父節點
當前提交
ca78bc7b0f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      extend/liuniu/WechatService.php

+ 1 - 1
extend/liuniu/WechatService.php

@@ -342,6 +342,7 @@ class WechatService
     public static function handleNotify($cid)
     {
         $response = self::payment(true, $cid)->handlePaidNotify(function ($notify, $successful) use ($cid) {
+            @file_put_contents("quanju.txt", json_encode($notify)."-签约成功内容\r\n", 8);
             if ($successful && isset($notify['out_trade_no'])) {
                 if (isset($notify['attach']) && $notify['attach']) {
                     if (($count = strpos($notify['out_trade_no'], '_')) !== false) {
@@ -351,7 +352,6 @@ class WechatService
                     Hook::exec("\\liuniu\\repositories\\PaymentRepositories", "wechat" . ucfirst($notify['attach']), $params);
                 }
                 $data = ['eventkey' => 'notify', 'command' => '', 'refreshtime' => time(), 'openid' => $notify['openid'], 'message' => json_encode($notify)];
-                @file_put_contents("quanju.txt", json_encode($data)."-微信支付成功回调接口\r\n", 8);
                 $wechatContext = WechatContext::create($data, true);
                 return true;
             }