= intval($cur_version)) $up = "-2"; } } } if($up != "0") exec("rm /link/update/update.tar"); echo '{"upload":"'.$up.'"}'; } } } catch (Exception $e) { echo "{error:'上传失败," . $e->getMessage() . "'}"; } }