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

分享二维码调试

... ... @@ -1510,13 +1510,13 @@ class Create extends Api
$info = Db::name('savemes')->where('id',$id)->field('id,type')->find();
//生成二维码
$page = '/pages/note2/note2?id='.$id.'&'.'type='.$info['type'].'&'.'user_id='.$user_id;
$data['thumbnail'] = $this->qrcode($page,$user_id);
$data['thumbnail'] = $this->qrcode($page,$id);
}
if(!empty($folder_id)){
$type = 0;
//生成二维码
$page = '/pages/fileDetail/fileDetail?id='.$folder_id.'&'.'type='.$type.'&'.'user_id='.$user_id;
$data['thumbnail'] = $this->qrcode($page,$user_id);
$data['thumbnail'] = $this->qrcode($page,$folder_id);
}
$this->success('success',$data);
}
... ... @@ -1555,13 +1555,13 @@ class Create extends Api
$info = Db::name('savemes')->where('id',$id)->field('id,share_url')->find();
//生成二维码
$page = $info['share_url'];
$data['thumbnail'] = $this->qrcode($page,$user_id);
$data['thumbnail'] = $this->qrcode($page,$id);
}
if(!empty($folder_id)){
$info = Db::name('folder')->where('id',$folder_id)->field('id,share_url')->find();
//生成二维码
$page = $info['share_url'];
$data['thumbnail'] = $this->qrcode($page,$user_id);
$data['thumbnail'] = $this->qrcode($page,$folder_id);
}
$this->success('success',$data);
}
... ...