Commit ef686f38 authored by 刘小敏's avatar 刘小敏

试戴图片host替换

parent 203cfb9c
......@@ -112,7 +112,8 @@ class AiTryon extends Common
// 查询商品信息,获取 image 字段
$goods = Goods::where('id', $params['goods_id'])->find();
$goodsImage = $goods ? config('shopro.api_host').$goods->image : '';
$config = get_addon_config('hwobs');
$goodsImage = $goods ? $config['cdnurl'].$goods->image : '';
// 我的试戴
$tryonModel = new AiTryOnModel();
......@@ -209,7 +210,8 @@ class AiTryon extends Common
// 查询商品信息,获取 image 字段
$goods = Goods::where('id', $params['goods_id'])->find();
$goodsImage = $goods ? config('shopro.api_host').$goods->image : '';
$config = get_addon_config('hwobs');
$goodsImage = $goods ? $config['cdnurl'].$goods->image : '';
// 保存一条 我的试戴
$tryonModel = new AiTryOnModel();
......
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 to comment