Browse Source

refactor:修改获取商品详情方法

antshop
linyaostalker 5 years ago
parent
commit
8f187f591f
  1. 2
      backend/modules/goods/logic/goods/GoodsManager.php

2
backend/modules/goods/logic/goods/GoodsManager.php

@ -296,7 +296,7 @@ class GoodsManager
$data['id'] = $sku->id; $data['id'] = $sku->id;
$data['price'] = $sku->price; $data['price'] = $sku->price;
$data['stock'] = $sku->stock; $data['stock'] = $sku->stock;
$data['weight'] = $sku->weight/1000;
$data['weight'] = $sku->weight/ShopManager::proportionalConversion(ShopManager::UNIT_TYPE_WEIGHT);
return $data; return $data;
} }

Loading…
Cancel
Save