|
回調地址:
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}
|
|