|
@@ -1,3 +1,20 @@
|
|
|
+<?php
|
|
|
+function getMobileType() {
|
|
|
+ $userAgent = $_SERVER['HTTP_USER_AGENT'];
|
|
|
+
|
|
|
+ // 检查iOS设备
|
|
|
+ if (dstrpos($userAgent, ['iphone', 'ipad', 'ipod', 'ios'])) {
|
|
|
+ return 'IOS';
|
|
|
+ }
|
|
|
+
|
|
|
+ // 检查Android设备
|
|
|
+ if (dstrpos($userAgent, ['android'])) {
|
|
|
+ return 'Android';
|
|
|
+ }
|
|
|
+
|
|
|
+ return 'IOS';
|
|
|
+}
|
|
|
+?>
|
|
|
<script language="text/template" id="content">
|
|
|
{{if checked}}
|
|
|
<div class="template-3 template-wrap hidden-xs">
|
|
@@ -126,7 +143,7 @@
|
|
|
<div class="app-info">
|
|
|
<div class="app-title">{{app_name}}</div>
|
|
|
<div class="google-play">
|
|
|
- <img src="/static/index/image/icon_{{ext}}.svg">
|
|
|
+ <img src="/static/index/image/icon_<?php echo getMobileType(); ?>.svg">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|