|
@@ -141,7 +141,7 @@ class Orders extends Api{
|
|
|
// 如果SKU不限制起购数量,跳过
|
|
|
if( !$value['min_quota'] ) continue;
|
|
|
// 如果限购的SKU不在购买列表中
|
|
|
- if( !in_array($value['id'],array_column($buyList,'product_skuid')) ) return json_send(['code'=>'error','msg'=>'最少购买'.$value['min_quota'].'单-'.$productInfo['product_name'].'【'.$value['attr_names'].'】','data'=>['error'=>'最少购买'.$value['min_quota'].'单-'.$productInfo['product_name']]]);;
|
|
|
+ if( !in_array($value['id'],array_column($buyList,'product_skuid')) ) return json_send(['code'=>'error','msg'=>'请搭配'.$productInfo['product_name'].'【'.$value['attr_names'].'】下单','data'=>['error'=>'最少购买'.$value['min_quota'].'单-'.$productInfo['product_name']]]);;
|
|
|
// 如果购买数量小于最低起购数量
|
|
|
foreach ($buyList as $item) {
|
|
|
// 如果SKU不匹配,跳过
|