下单单品使用商品类型优化

feat/task1-c-wallet
gongfuxiang 2022-04-06 18:54:51 +08:00
parent dcc4fb0783
commit 28ed42cb5d
1 changed files with 2 additions and 2 deletions

View File

@ -1125,8 +1125,8 @@ class BuyService
foreach($buy['data']['goods'] as $v)
{
// 商品销售模式
// 商品小于等于1则使用商品的类型
if($v['order_base']['goods_count'] == 1)
// 当前整体仓库商品等于1则使用商品的类型
if($buy['data']['base']['goods_count'] == 1)
{
$ret = GoodsService::GoodsSalesModelType($v['goods_items'][0]['goods_id']);
$site_model = ($ret['data'] == 4) ? $user_site_model : $ret['data'];