...
|
...
|
@@ -155,7 +155,7 @@ class Create extends Api |
|
|
|
|
|
//生成二维码
|
|
|
$type = 2;
|
|
|
$page = '/pages/fileDetail/fileDetail?id='.$data.'&'.'type='.$type;
|
|
|
$page = '/pages/note2/note2?id='.$data.'&'.'type='.$type;
|
|
|
$thumbnail = $this->qrcode($page,$data);
|
|
|
Db::name('savemes')->where('id',$data)->update(['thumbnail'=>$thumbnail,'share_url'=>$share_url]);
|
|
|
|
...
|
...
|
@@ -232,7 +232,7 @@ class Create extends Api |
|
|
|
|
|
//生成二维码
|
|
|
$type = 3;
|
|
|
$page = '/pages/fileDetail/fileDetail?id='.$data.'&'.'type='.$type;
|
|
|
$page = '/pages/note2/note2?id='.$data.'&'.'type='.$type;
|
|
|
$thumbnail = $this->qrcode($page,$data);
|
|
|
Db::name('savemes')->where('id',$data)->update(['thumbnail'=>$thumbnail,'share_url'=>$share_url]);
|
|
|
|
...
|
...
|
@@ -310,7 +310,7 @@ class Create extends Api |
|
|
|
|
|
//生成二维码
|
|
|
$type = 1;
|
|
|
$page = '/pages/fileDetail/fileDetail?id='.$data.'&'.'type='.$type;
|
|
|
$page = '/pages/note2/note2?id='.$data.'&'.'type='.$type;
|
|
|
$thumbnail = $this->qrcode($page,$data);
|
|
|
Db::name('savemes')->where('id',$data)->update(['thumbnail'=>$thumbnail,'share_url'=>$share_url]);
|
|
|
|
...
|
...
|
@@ -485,7 +485,7 @@ class Create extends Api |
|
|
|
|
|
|
|
|
//是否收藏过
|
|
|
$collect = Db::name('collect')->where('type',2)->where('user_id',$user_id)->where('savemes_id',$id)->find();
|
|
|
$collect = Db::name('collect')->where('user_id',$user_id)->where('savemes_id',$id)->find();
|
|
|
if(empty($collect)){
|
|
|
$data['is_collect'] = 2;
|
|
|
}else{
|
...
|
...
|
@@ -602,10 +602,7 @@ class Create extends Api |
|
|
$v['video'] = '';
|
|
|
$v['video_image'] = '';
|
|
|
$v['content'] = '';
|
|
|
$v['images'] = explode(',',$data['images']);
|
|
|
foreach ($v['images'] as &$val){
|
|
|
$val = $qiniu.$val;
|
|
|
}
|
|
|
$v['images'] = $qiniu.$v['images'];
|
|
|
}
|
|
|
if(!empty($v['content'])){
|
|
|
$v['images'] = '';
|
...
|
...
|
|