逻辑更改

This commit is contained in:
Jerry Yan 2020-01-16 19:35:02 +08:00 committed by JerryYan
parent 69f7ad7a86
commit 68bb82fe30
3 changed files with 2 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -323,6 +323,8 @@ class Orders extends Base{
// 验证商品规格是否已选
foreach ($carts['carts'] as $v) {
foreach ($v['list'] as $val) {
// 坑啊判断下会死嘛 ---- 20200116
if($val['isSpec']!=1)continue;
$id = Db::name('goods_specs')->where(['shopId'=>$val['shopId'],'goodsId'=>$val['goodsId']])->column('id');
if($id && $val['goodsSpecId'] == ''){
return WSTReturn("请选择商品规格型号!");