|  | @ -7,10 +7,13 @@ import com.yihu.jw.rm.hospital.BaseHospitalRequestMapping;
 | 
	
		
			
				|  |  | import com.yihu.jw.version.service.AppVersionService;
 | 
	
		
			
				|  |  | import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  | import io.swagger.annotations.ApiOperation;
 | 
	
		
			
				|  |  | import org.apache.commons.collections.map.HashedMap;
 | 
	
		
			
				|  |  | import org.json.JSONObject;
 | 
	
		
			
				|  |  | import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import java.util.Map;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | /**
 | 
	
		
			
				|  |  |  * Created by Trick on 2020/2/24.
 | 
	
		
			
				|  |  |  */
 | 
	
	
		
			
				|  | @ -44,13 +47,13 @@ public class VersionEndpoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |                     return success("已是最新版本!");
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             } else {
 | 
	
		
			
				|  |  |                 JSONObject json = new JSONObject();
 | 
	
		
			
				|  |  |                 json.put("version_int", temp.getVersionInt());
 | 
	
		
			
				|  |  |                 json.put("version_str", temp.getVersionStr());
 | 
	
		
			
				|  |  |                 json.put("url", temp.getUrl());
 | 
	
		
			
				|  |  |                 json.put("info", temp.getInfo());
 | 
	
		
			
				|  |  |                 json.put("size", temp.getSize());
 | 
	
		
			
				|  |  |                 return success("读取版本号成功!", json);
 | 
	
		
			
				|  |  |                 Map<String,Object> map = new HashedMap();
 | 
	
		
			
				|  |  |                 map.put("version_int", temp.getVersionInt());
 | 
	
		
			
				|  |  |                 map.put("version_str", temp.getVersionStr());
 | 
	
		
			
				|  |  |                 map.put("url", temp.getUrl());
 | 
	
		
			
				|  |  |                 map.put("info", temp.getInfo());
 | 
	
		
			
				|  |  |                 map.put("size", temp.getSize());
 | 
	
		
			
				|  |  |                 return success("读取版本号成功!", map);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     }
 |