商品规格优化

This commit is contained in:
devil
2020-10-12 10:36:57 +08:00
parent 0df07e9ca3
commit 3387d85efe
3 changed files with 9 additions and 6 deletions

View File

@ -200,7 +200,7 @@ class Devtest extends Common
$spec = array_column($res['value'], 'value');
foreach($spec as $k=>$v)
{
$arr = explode(',', $v);
$arr = explode(GoodsService::$goods_spec_to_string_separator, $v);
$inventory_spec[] = [
'name' => implode(' / ', $arr),
'spec' => json_encode(WarehouseGoodsService::GoodsSpecMuster($v, $res['title']), JSON_UNESCAPED_UNICODE),