소스 검색

仅有pc获取轮询截止时间,删除无用的log日志

吴昊天 2 년 전
부모
커밋
38e305bc45
2개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      crmeb/app/services/pay/OrderPayServices.php
  2. 0 2
      crmeb/crmeb/services/pay/storage/V3WechatPay.php

+ 1 - 1
crmeb/app/services/pay/OrderPayServices.php

@@ -186,7 +186,7 @@ class OrderPayServices
         $payKey = md5($order['order_id']);
         $payKey = md5($order['order_id']);
         switch ($payType) {
         switch ($payType) {
             case PayServices::ALIAPY_PAY:
             case PayServices::ALIAPY_PAY:
-                $jsConfig->invalid = time() + 60;
+                if (request()->isPc()) $jsConfig->invalid = time() + 60;
                 CacheService::set($payKey, ['order_id' => $order['order_id'], 'other_pay_type' => false], 300);
                 CacheService::set($payKey, ['order_id' => $order['order_id'], 'other_pay_type' => false], 300);
                 break;
                 break;
             case PayServices::ALLIN_PAY:
             case PayServices::ALLIN_PAY:

+ 0 - 2
crmeb/crmeb/services/pay/storage/V3WechatPay.php

@@ -201,8 +201,6 @@ class V3WechatPay extends BasePay implements PayInterface
     {
     {
         return $this->instance->v3pay->handleNotify(function ($notify, $successful) {
         return $this->instance->v3pay->handleNotify(function ($notify, $successful) {
 
 
-            Log::info('支付回调:' . json_encode($notify));
-
             if ($successful) {
             if ($successful) {
                 $data = [
                 $data = [
                     'attach' => $notify->attach,
                     'attach' => $notify->attach,