code review by fei.hong: do test yuanxiao huodong redirect
Showing
1 changed file
with
10 additions
and
1 deletions
@@ -254,7 +254,16 @@ class YuanxiaoController extends HuodongAction | @@ -254,7 +254,16 @@ class YuanxiaoController extends HuodongAction | ||
254 | */ | 254 | */ |
255 | private function checkNeedShare() | 255 | private function checkNeedShare() |
256 | { | 256 | { |
257 | - if (strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false || $this->_isApp) { | 257 | + // Android |
258 | + if ($this->_isApp) { | ||
259 | + return true; | ||
260 | + } | ||
261 | + // IPhone | ||
262 | + elseif (null !== $this->get('openby:yohobuy', null)) { | ||
263 | + return true; | ||
264 | + } | ||
265 | + // 微信 | ||
266 | + elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false) { | ||
258 | return true; | 267 | return true; |
259 | } | 268 | } |
260 | 269 |
-
Please register or login to post a comment