...
|
...
|
@@ -254,7 +254,16 @@ class YuanxiaoController extends HuodongAction |
|
|
*/
|
|
|
private function checkNeedShare()
|
|
|
{
|
|
|
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false || $this->_isApp) {
|
|
|
// Android
|
|
|
if ($this->_isApp) {
|
|
|
return true;
|
|
|
}
|
|
|
// IPhone
|
|
|
elseif (null !== $this->get('openby:yohobuy', null)) {
|
|
|
return true;
|
|
|
}
|
|
|
// 微信
|
|
|
elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false) {
|
|
|
return true;
|
|
|
}
|
|
|
|
...
|
...
|
|