作者 jinglong
1 个管道 的构建 通过 耗费 1 秒

修改封面图

... ... @@ -119,8 +119,8 @@ class Brand extends Api
$res = Common::findSoftWhereData('btype',['id'=>$b_id],'createtime,updatetime,deletetime',true);
if($res){
$res['image'] = $this->auth->absolutionUrlOne($res['image']);
$res['file'] = $this->auth->absolutionUrlOne($res['file']);
$res['file_cover'] = $this->auth->absolutionUrlOneFrame($res['file'],1);
$res['file'] = $this->auth->absolutionUrlOne($res['file']);
$res['image_long'] = $this->auth->absolutionUrlOne($res['image_long']);
$res['tag'] = explode('|',$res['tag']);
}
... ...
... ... @@ -96,12 +96,12 @@ class Goods extends Api
$res['image'] = $this->auth->absolutionUrlOne($res['image']);
$res['images'] = $this->auth->absolutionUrl($res['images']);
if(!empty($res['file'])){
$res['file'] = [
$this->auth->absolutionUrlOne($res['file'])
];
$res['file_cover'] = [
$this->auth->absolutionUrlOneFrame($res['file'],1)
];
$res['file'] = [
$this->auth->absolutionUrlOne($res['file'])
];
}else{
$res['file'] = [];
$res['file_cover'] = [];
... ...