|
|
@@ -1064,6 +1064,14 @@ class OrderController extends BaseController
|
|
|
|
|
|
$shop = $this->shop;
|
|
|
|
|
|
+ //到期超过5天不支持开单
|
|
|
+ $deadline = $shop->deadline;
|
|
|
+ $deadTime = strtotime($deadline);
|
|
|
+ $myCurrentTime = time() + 432000;
|
|
|
+ if ($myCurrentTime > $deadTime) {
|
|
|
+ util::fail('系统已到期,请续费');
|
|
|
+ }
|
|
|
+
|
|
|
if (isset($shop->pfLevel) && $shop->pfLevel == 1) {
|
|
|
//昆明发往全国
|
|
|
$sendCost = isset($post['sendCost']) && $post['sendCost'] > 0 ? $post['sendCost'] : 0;
|