shish 4 years ago
parent
commit
9d43e8a5eb
2 changed files with 7 additions and 7 deletions
  1. 1 1
      app-ghs/controllers/OrderController.php
  2. 6 6
      common/components/dict.php

+ 1 - 1
app-ghs/controllers/OrderController.php

@@ -631,7 +631,7 @@ class OrderController extends BaseController
             //判断花材有效性
             ProductClass::valid($productList, $this->shopId);
             $post['product'] = $productList;
-            //商家开单到时间会自动标记为欠款,所以不需要有过期时间
+            //商家开单到时间会自动标记为欠款,所以360天内不过期,以保证足够时间标记欠款,具体参数查看dict local_gys_kd_auto_set_debt_time
             $post['deadline'] = date("Y-m-d H:i:s", strtotime('+360 day'));
             $return = OrderService::createOrder($post, $custom, $hasPay);
             $transaction->commit();

+ 6 - 6
common/components/dict.php

@@ -48,13 +48,13 @@ class dict
         //是否在线支付
         'onlinePay' => ['not' => 1, 'yes' => 2],
 
-        //商家开单了,客户多少秒后未付款,自动标记欠款
-        'local_gys_kd_auto_set_debt_time' => 90,
+        //商家开单了,客户多少秒后未付款,自动标记欠款。由于未付款单自动标记为欠款,商家开的订单360天内都不过期。
+        'local_gys_kd_auto_set_debt_time' => 1500,
 
-        //客户采购订单有效期是多少秒,有效期内可以支付,到期自动取消。由于未付款单自动标记为欠款,商家开的订单不过期。
-        'order_pay_has_time' => 90,
-        //客户线上付款时,在订单到期前多少秒还能支付
-        'order_online_pay_has_ahead_time' => 30,
+        //客户采购订单有效期是多少秒,有效期内可以支付,到期自动取消。
+        'order_pay_has_time' => 1500,
+        //客户采购线上付款的,在订单到期前多少秒还能支付
+        'order_online_pay_has_ahead_time' => 180,
 
         'expressList' => [
             [