|
|
@@ -644,6 +644,11 @@ class PurchaseController extends BaseController
|
|
|
util::fail('没满100元且15扎,请返回选运费');
|
|
|
}
|
|
|
}
|
|
|
+ // 按当天计时,把 sendTimeWant 要限制在两天的时间范围之内
|
|
|
+ $future = date("Y-m-d", strtotime('+2 day'));
|
|
|
+ if (strtotime($respond->sendTimeWant) > strtotime($future)) {
|
|
|
+ util::fail('配货日期要在两天之内');
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if ($ghsShopId == 77703) {
|
|
|
@@ -676,8 +681,12 @@ class PurchaseController extends BaseController
|
|
|
util::fail('没满50元且满10扎,请运费必选商品');
|
|
|
}
|
|
|
}
|
|
|
+ // 按当天计时,把 sendTimeWant 要限制在两天的时间范围之内
|
|
|
+ $future = date("Y-m-d", strtotime('+2 day'));
|
|
|
+ if (strtotime($respond->sendTimeWant) > strtotime($future)) {
|
|
|
+ util::fail('配送日期要在两天之内');
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
if (isset($ghsInfo['home'])) {
|