|
|
@@ -88,6 +88,9 @@ class UploadFile extends BaseModel
|
|
|
->where(['is_user' => 0, 'is_delete' => 0])
|
|
|
->where('shop_supplier_id', '=', $shop_supplier_id)
|
|
|
->order(['file_id' => 'desc'])
|
|
|
- ->paginate($pageSize);
|
|
|
+ ->paginate($pageSize)
|
|
|
+ ->each(function($item, $k){
|
|
|
+ $item['file_path'] = preg_replace("/^(http|https):\/\//", '//', $item['file_path']);
|
|
|
+ });
|
|
|
}
|
|
|
}
|