作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

海报

... ... @@ -78,11 +78,11 @@ class ShareController extends WeChatBaseController
$share_image = cmf_get_image_url('poster/poster_'.$user_id.".png");
$this->assign('share_image',$share_image);
//分享
// $options = config('wechat_config');
// $app = new Application($options);
// $js = $app->js;
// $jssdk = $js->config(array('onMenuShareAppMessage', 'onMenuShareTimeline','onMenuShareQQ'), false, false, true);
$this->assign('jssdk','$jssdk');
$options = config('wechat_config');
$app = new Application($options);
$js = $app->js;
$jssdk = $js->config(array('onMenuShareAppMessage', 'onMenuShareTimeline','onMenuShareQQ'), false, false, true);
$this->assign('jssdk',$jssdk);
//分享内容
$share_url = url('to_user',array('user_id'=>$user_id),false,true);
$share['share_title'] = "$user[user_nickname]的海报";
... ...