|
回调地址:
https://域名/douyin.html
js安全域名:
域名
伪静态:
rewrite ^([^\.]*)/douyin\.html$ $1/plugin.php?id=pn_douyin:access&ac=callback last;
手机模板里登陆注册链接
{eval}
if(strpos($_SERVER['HTTP_USER_AGENT'], 'ToutiaoMicroApp') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'BytedanceWebview') !== false){
echo '<p style="text-align: center;"><a href="plugin.php?id=pn_douyin:access&state='.rawurlencode(dreferer()).'"><img src="source/plugin/pn_douyin/image/douyin.png" style="width:50px;"/></a></p>';
}
{/eval}
电脑模板里登陆注册链接
{eval}
echo '<p style="text-align: center;"><a href="plugin.php?id=pn_douyin:access&state='.rawurlencode(dreferer()).'"><img src="source/plugin/pn_douyin/image/douyin.png" style="width:50px;"/></a></p>';
{/eval}
手机版绑定解绑链接
{eval}
$_G['douyinuser'] = C::t('#pn_douyin#common_member_douyin')->fetch($_G['uid']);
if($_G['douyinuser'] && $_G['douyinuser']['status'] == 2){
echo '<li><a href="home.php?mod=spacecp&ac=plugin&id=pn_douyin:spacecp"><i class="dm-person-fill"></i>'.lang('plugin/pn_douyin','douyin_unbind').'</a></li>';
}
if((strpos($_SERVER['HTTP_USER_AGENT'], 'ToutiaoMicroApp') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'BytedanceWebview') !== false)){
echo '<li><a href="plugin.php?id=pn_douyin:access"><i class="dm-person-fill"></i>'.lang('plugin/pn_douyin','douyin_bind').'</a></li>';
}
{/eval}
|
|