作者 郭盛
1 个管道 的构建 通过 耗费 0 秒

修改项目详情

@@ -221,6 +221,10 @@ class Project extends Api @@ -221,6 +221,10 @@ class Project extends Api
221 ->find(); 221 ->find();
222 $look_num = $data['look_num']+1; 222 $look_num = $data['look_num']+1;
223 Db::name('project')->where('id',$id)->update(['look_num'=>$look_num]); 223 Db::name('project')->where('id',$id)->update(['look_num'=>$look_num]);
  224 + $data['image'] = explode(',',$data['image']);
  225 + foreach ($data['image'] as &$val){
  226 + $val = 'http://q2ugvq3qf.bkt.clouddn.com'.$val;
  227 + }
224 $data['images'] = explode(',',$data['images']); 228 $data['images'] = explode(',',$data['images']);
225 foreach ($data['images'] as &$v){ 229 foreach ($data['images'] as &$v){
226 $v = 'http://q2ugvq3qf.bkt.clouddn.com'.$v; 230 $v = 'http://q2ugvq3qf.bkt.clouddn.com'.$v;