Parcourir la source

让客户在失效前60前需支付成功,这样回调通知时订单才不会是失效的

shish il y a 4 ans
Parent
commit
6a6ce247ef
2 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 2 1
      app-hd/controllers/ShopController.php
  2. 1 1
      common/components/dict.php

+ 2 - 1
app-hd/controllers/ShopController.php

@@ -256,7 +256,8 @@ class ShopController extends BaseController
 
         $current = time();
         $cgDeadTime = strtotime($cg->deadline);
-        $count = ($cgDeadTime - $current) > 0 ? ($cgDeadTime - $current) : 0;
+        //让客户在失效前60前支付成功,这样回调通知时订单才不会过期状态
+        $count = ($cgDeadTime - $current - 60) > 0 ? ($cgDeadTime - $current) : 0;
 
         $data = [];
         $data['balance'] = $this->shop->balance ?? 0;

+ 1 - 1
common/components/dict.php

@@ -48,7 +48,7 @@ class dict
         //是否在线支付
         'onlinePay' => ['not' => 1, 'yes' => 2],
 
-        //商家开了待付款单客户未付款自动标记欠款单时间
+        //商家开了待付款单客户未付款自动标记欠款单时间,单位为秒
         'local_gys_kd_auto_set_debt_time' => 30,
 
         //客户采购订单有效期是多少秒,有效期内可以支付,到期自动取消。由于未付款单自动标记为欠款,商家开的订单不过期。