...
|
...
|
@@ -132,13 +132,20 @@ trait Backend |
|
|
if ($params) {
|
|
|
$host = 'http://feipin.w.brotop.cn';
|
|
|
if(isset($params['image']) && !empty($params['image'])){
|
|
|
$params['image'] = $host.$params['image'];
|
|
|
if(strpos($params['image'],$host) !== false){
|
|
|
}else{
|
|
|
$params['image'] = $host.$params['image'];
|
|
|
}
|
|
|
}
|
|
|
if(isset($params['images']) && !empty($params['images'])){
|
|
|
$images = explode(',',$params['images']);
|
|
|
$img = '';
|
|
|
foreach($images as $value){
|
|
|
$img .= $host.$value.',';
|
|
|
if(strpos($images,$host) !== false){
|
|
|
$img .= $host.$value.',';
|
|
|
}else{
|
|
|
$img .= $value.',';
|
|
|
}
|
|
|
}
|
|
|
$params['images'] = trim($img,',');
|
|
|
}
|
...
|
...
|
|