feat: #10000 图片路径修改

This commit is contained in:
赵世界 2022-08-17 16:21:07 +08:00
parent ea355d3395
commit c18f939810

View File

@ -25,7 +25,7 @@ class Goods extends Model
public function getImgUrlAttribute($value) public function getImgUrlAttribute($value)
{ {
if (false !== strpos($value, 'ju8hn6/erp/shop')) { if (0 === strpos($value, 'ju8hn6/erp/shop')) {
$value = config('filesystems.disks.aliyun.url') . $value; $value = config('filesystems.disks.aliyun.url') . $value;
} }