商品采集报错处理

This commit is contained in:
evoxwht 2023-06-16 11:26:07 +08:00
parent cf5759f60f
commit cddfecb072

View File

@ -55,7 +55,7 @@ class CopyTaobaoServices extends BaseServices
case 1://平台
/** @var ServeServices $services */
$services = app()->make(ServeServices::class);
$resultData = $services->copy('copy')->goods($url, sys_config('yihaotong_copy_appid', ''));
$resultData = $services->copy('copy')->goods($url, [], sys_config('yihaotong_copy_appid', ''));
if (isset($resultData['description_image']) && is_string($resultData['description_image'])) {
$resultData['description_image'] = json_decode($resultData['description_image'], true);
}