Showing
1 changed file
with
4 additions
and
3 deletions
@@ -118,7 +118,7 @@ class CouponController extends AbstractAction | @@ -118,7 +118,7 @@ class CouponController extends AbstractAction | ||
118 | */ | 118 | */ |
119 | public function isApp() | 119 | public function isApp() |
120 | { | 120 | { |
121 | - $userAgent = $this->getUserAgent(); | 121 | + /* $userAgent = $this->getUserAgent(); |
122 | if (stristr($userAgent, 'ipad')) { | 122 | if (stristr($userAgent, 'ipad')) { |
123 | return false; | 123 | return false; |
124 | } | 124 | } |
@@ -129,8 +129,9 @@ class CouponController extends AbstractAction | @@ -129,8 +129,9 @@ class CouponController extends AbstractAction | ||
129 | $isMobile = true; | 129 | $isMobile = true; |
130 | break; | 130 | break; |
131 | } | 131 | } |
132 | - } | ||
133 | - return $isMobile; | 132 | + }*/ |
133 | + $isMobile = $this->get('app_version'); | ||
134 | + return !empty($isMobile); | ||
134 | } | 135 | } |
135 | 136 | ||
136 | /** | 137 | /** |
-
Please register or login to post a comment