= intval($cur_version)) $up = "-2"; //升级包与系统版本不匹配 } } } if($up != "0") exec("rm /link/update/update.tar"); echo '{"upload":"'.$up.'"}'; } } } catch (Exception $e) { echo "{error:'上传失败," . $e->getMessage() . "'}"; } }