|
|
@@ -393,9 +393,13 @@ class Common extends BaseController
|
|
393
|
393
|
//安卓
|
|
394
|
394
|
if ($data['type'] == 1) {
|
|
395
|
395
|
$config = systemConfig(['about_edition_android', 'about_link_android', 'update_content','Android_forced_update']);
|
|
396
|
|
- if ($data['about'] != $config['about_edition_android']) {
|
|
|
396
|
+
|
|
|
397
|
+ $version = str_replace('.', '', $data['about']);
|
|
|
398
|
+ $sysVersion = str_replace('.', '', $config['about_edition_android']);
|
|
|
399
|
+
|
|
|
400
|
+ if ($version < $sysVersion) {
|
|
397
|
401
|
return app('json')->success($config);
|
|
398
|
|
- } else {
|
|
|
402
|
+ }else{
|
|
399
|
403
|
return app('json')->fail('已是最新版本');
|
|
400
|
404
|
}
|
|
401
|
405
|
}
|