Commit b0b08e89 authored by Quxl's avatar Quxl

x

parent 4b409f84
......@@ -146,14 +146,4 @@ public class OpenMemberApiController {
return Rjx.jsonOk();
}
@ResponseBody
@PostMapping("getLocale")
@ApiOperation("获取当前语言环境")
@ApiImplicitParams({
@ApiImplicitParam(paramType="header", dataType="string", name="i18n_language")
})
public Object getLocale(HttpServletRequest request) {
return Rjx.jsonOk().set("locale", LocaleContextHolder.getLocale().toString()).set("msg.test", messages.get("msg.test"));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment