...
|
...
|
@@ -65,14 +65,14 @@ public class LuaSwitchCtrl { |
|
|
*
|
|
|
* @return 2016年5月12日下午1:49:48
|
|
|
*/
|
|
|
@RequestMapping(value = "viewToChangeLuaConf")
|
|
|
@RequestMapping(value = "viewToChangeLuaConf")
|
|
|
@ResponseBody
|
|
|
public BaseResponse viewToChangeLuaConf(String cloudName, HttpServletRequest request) {
|
|
|
logger.info("cloudName {}",cloudName);
|
|
|
Map<String,Object> map = new HashMap();
|
|
|
map.put("flag", StringUtils.equals("aws",cloudName) ? 1 : (StringUtils.equals("qcloud",cloudName) ? 2 : 3));
|
|
|
String path = request.getSession().getServletContext().getRealPath("/") + "lua/dns_resolver_worker.lua";
|
|
|
String result = HandlebarsUtils.replace(map,"dns_resolver_worker",path);
|
|
|
String result = HandlebarsUtils.replace(map,"template/dns_resolver_worker",path);
|
|
|
return new BaseResponse(200,"success",result);
|
|
|
}
|
|
|
|
...
|
...
|
|