|
|
@@ -619,6 +619,25 @@ class PurchaseController extends BaseController
|
|
|
if ($ghsShopId == 7687 || $ghsShopId == 7831 || $ghsShopId == 7778 || $ghsShopId == 12003 || $ghsShopId == 38128) {
|
|
|
util::fail('暂不支持送货上门,请选其它配送方式!');
|
|
|
}
|
|
|
+
|
|
|
+ //广州鑫源花卉,选择送货上门必须选必选商品
|
|
|
+ if ($ghsShopId == 12439) {
|
|
|
+ $hasMust = array_intersect($ids, [3446945, 3446970, 3446973, 3446979, 3446995, 3447010, 3447023, 3459983]);
|
|
|
+ if (empty($hasMust)) {
|
|
|
+ util::fail('请返回选一个必选商品');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ } else {
|
|
|
+
|
|
|
+ //好运鲜花批发,选择送货上门必须选必选商品
|
|
|
+ if ($ghsShopId == 36523) {
|
|
|
+ $hasMust = array_intersect($ids, [25846, 34238, 86042]);
|
|
|
+ if (empty($hasMust)) {
|
|
|
+ util::fail('请返回选一个必选商品');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
if (isset($ghsInfo['home'])) {
|