|
@@ -35,6 +35,40 @@ class status extends IAsync
|
|
|
if($this->check_fcode()) return;
|
|
|
}
|
|
|
|
|
|
+ private function check_version()
|
|
|
+ {
|
|
|
+ $ver_code = $_SESSION['client_version'];
|
|
|
+ if($_SESSION['client_type'] == 'ios')
|
|
|
+ {
|
|
|
+ $cur_ver = $GLOBALS['setting_config']['mobile_ios_version'];
|
|
|
+
|
|
|
+ $cur_ver = intval($cur_ver * 100 + 0.5);
|
|
|
+ $ver_code = intval($ver_code * 100 + 0.5);
|
|
|
+
|
|
|
+ if($ver_code < $cur_ver) {
|
|
|
+ $url = $GLOBALS['setting_config']['mobile_ios'];
|
|
|
+ $tips = $GLOBALS['setting_config']['mobile_update_tips'];
|
|
|
+ $artips = explode('#',$tips);
|
|
|
+ $tips = implode("\n",$artips);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ elseif($_SESSION['client_type'] == 'android')
|
|
|
+ {
|
|
|
+ $cur_ver = $GLOBALS['setting_config']['mobile_apk_version'];
|
|
|
+ $cur_ver = intval($cur_ver * 100 + 0.5);
|
|
|
+ $ver_code = intval($ver_code * 100 + 0.5);
|
|
|
+
|
|
|
+ if($ver_code < $cur_ver) {
|
|
|
+ $url = $GLOBALS['setting_config']['mobile_apk'];
|
|
|
+ $tips = $GLOBALS['setting_config']['mobile_update_tips'];
|
|
|
+ $artips = explode('#',$tips);
|
|
|
+ $tips = implode("\n",$artips);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
private function check_present()
|
|
|
{
|
|
|
if($this->mem_info->order_num() > 0) {
|
|
@@ -54,11 +88,11 @@ class status extends IAsync
|
|
|
|
|
|
private function check_bonus()
|
|
|
{
|
|
|
- return true;
|
|
|
+ return false;
|
|
|
}
|
|
|
|
|
|
private function check_fcode()
|
|
|
{
|
|
|
- return true;
|
|
|
+ return false;
|
|
|
}
|
|
|
}
|