|
@@ -58,8 +58,15 @@ class app_updateControl extends mobileHomeControl
|
|
|
$update_info['app_path'] = $data[0]['app_path'];
|
|
|
$update_info['release_note'] = $data[0]['release_note'];
|
|
|
$update_info['remind_time'] = $data[0]['remind_time'];
|
|
|
+
|
|
|
$parse_url = parse_url($update_info['app_path']);
|
|
|
- $update_info['md5_file'] = md5_file(BASE_ROOT_PATH . $parse_url['path']);
|
|
|
+ $file_path = BASE_ROOT_PATH . $parse_url['path'];
|
|
|
+ if(file_exists($file_path)) {
|
|
|
+ $update_info['md5_file'] = md5_file($file_path);
|
|
|
+ } else {
|
|
|
+ $update_info['md5_file'] = '';
|
|
|
+ }
|
|
|
+
|
|
|
$result['update_info'] = $update_info;
|
|
|
}
|
|
|
joutput_data($result);
|