shish 4 лет назад
Родитель
Сommit
c00cd6bc67
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      app-hd/controllers/PurchaseClearController.php

+ 3 - 1
app-hd/controllers/PurchaseClearController.php

@@ -43,7 +43,9 @@ class PurchaseClearController extends BaseController
         $post['customShopAdminName'] = $shopAdminName;
         $respond = PurchaseClearClass::addOrder($post, $ghs);
         //前端显示的付款倒计时
-        $remainSecond = dict::getDict('order_pay_has_time');
+        $hasTime = dict::getDict('order_pay_has_time');
+        $aheadTime = dict::getDict('order_online_pay_has_ahead_time');
+        $remainSecond = $hasTime - $aheadTime;
         $respond['remainSecond'] = $remainSecond;
         util::success($respond);
     }