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

修改过期时间

@@ -155,7 +155,7 @@ class Create extends Api @@ -155,7 +155,7 @@ class Create extends Api
155 155
156 //生成二维码 156 //生成二维码
157 $type = 2; 157 $type = 2;
158 - $page = '/pages/fileDetail/fileDetail?id='.$data.'&'.'type='.$type; 158 + $page = '/pages/note2/note2?id='.$data.'&'.'type='.$type;
159 $thumbnail = $this->qrcode($page,$data); 159 $thumbnail = $this->qrcode($page,$data);
160 Db::name('savemes')->where('id',$data)->update(['thumbnail'=>$thumbnail,'share_url'=>$share_url]); 160 Db::name('savemes')->where('id',$data)->update(['thumbnail'=>$thumbnail,'share_url'=>$share_url]);
161 161
@@ -232,7 +232,7 @@ class Create extends Api @@ -232,7 +232,7 @@ class Create extends Api
232 232
233 //生成二维码 233 //生成二维码
234 $type = 3; 234 $type = 3;
235 - $page = '/pages/fileDetail/fileDetail?id='.$data.'&'.'type='.$type; 235 + $page = '/pages/note2/note2?id='.$data.'&'.'type='.$type;
236 $thumbnail = $this->qrcode($page,$data); 236 $thumbnail = $this->qrcode($page,$data);
237 Db::name('savemes')->where('id',$data)->update(['thumbnail'=>$thumbnail,'share_url'=>$share_url]); 237 Db::name('savemes')->where('id',$data)->update(['thumbnail'=>$thumbnail,'share_url'=>$share_url]);
238 238
@@ -310,7 +310,7 @@ class Create extends Api @@ -310,7 +310,7 @@ class Create extends Api
310 310
311 //生成二维码 311 //生成二维码
312 $type = 1; 312 $type = 1;
313 - $page = '/pages/fileDetail/fileDetail?id='.$data.'&'.'type='.$type; 313 + $page = '/pages/note2/note2?id='.$data.'&'.'type='.$type;
314 $thumbnail = $this->qrcode($page,$data); 314 $thumbnail = $this->qrcode($page,$data);
315 Db::name('savemes')->where('id',$data)->update(['thumbnail'=>$thumbnail,'share_url'=>$share_url]); 315 Db::name('savemes')->where('id',$data)->update(['thumbnail'=>$thumbnail,'share_url'=>$share_url]);
316 316
@@ -485,7 +485,7 @@ class Create extends Api @@ -485,7 +485,7 @@ class Create extends Api
485 485
486 486
487 //是否收藏过 487 //是否收藏过
488 - $collect = Db::name('collect')->where('type',2)->where('user_id',$user_id)->where('savemes_id',$id)->find(); 488 + $collect = Db::name('collect')->where('user_id',$user_id)->where('savemes_id',$id)->find();
489 if(empty($collect)){ 489 if(empty($collect)){
490 $data['is_collect'] = 2; 490 $data['is_collect'] = 2;
491 }else{ 491 }else{
@@ -602,10 +602,7 @@ class Create extends Api @@ -602,10 +602,7 @@ class Create extends Api
602 $v['video'] = ''; 602 $v['video'] = '';
603 $v['video_image'] = ''; 603 $v['video_image'] = '';
604 $v['content'] = ''; 604 $v['content'] = '';
605 - $v['images'] = explode(',',$data['images']);  
606 - foreach ($v['images'] as &$val){  
607 - $val = $qiniu.$val;  
608 - } 605 + $v['images'] = $qiniu.$v['images'];
609 } 606 }
610 if(!empty($v['content'])){ 607 if(!empty($v['content'])){
611 $v['images'] = ''; 608 $v['images'] = '';