Commit e937d79e by hcy

source

parent 7fd89bf0
Showing with 1 additions and 1 deletions
......@@ -138,7 +138,7 @@ class SkuService
$selectFields = ['goods_id', 'create_time', 'eccn', 'source', 'encoded'];
$skuDBData = $connection->table($table)->select($selectFields)->where('goods_id', $item['goods_id'])->first();
$skuDBData = $skuDBData ? $skuDBData : [];
$item['source_name'] = array_get(config('field.SkuSource'), $skuDBData['source'], '');
$item['source_name'] = array_get(config('field.SkuSource'), @$skuDBData['source'], '');
return $item;
}, $list);
$list = $this->transformInvalidSkuTag($list);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment