Commit 4b409f84 authored by Quxl's avatar Quxl

x

parent d2d4254c
...@@ -128,9 +128,9 @@ public class OpenMemberApiController { ...@@ -128,9 +128,9 @@ public class OpenMemberApiController {
@ResponseBody @ResponseBody
@PostMapping("setLocale") @PostMapping("setLocale")
@ApiOperation("设置语言环境") @ApiOperation("设置语言环境,用户切换语言时调用,电影节相关提醒类邮件的发送语言种类都与此设置有关")
@ApiImplicitParams({@ApiImplicitParam(paramType="header", dataType="string", name="i18n_language"), @ApiImplicitParams({
@ApiImplicitParam(paramType = "query", dataType = "String", required = true, name = "i18n_language", defaultValue="zh_CN") @ApiImplicitParam(paramType = "query", dataType = "string", required = true, name = "i18n_language", defaultValue="zh_CN")
}) })
public Object setLocale(HttpServletResponse response, String i18n_language) { public Object setLocale(HttpServletResponse response, String i18n_language) {
Cookie cookie = new Cookie(LocaleInterceptor.language, i18n_language); Cookie cookie = new Cookie(LocaleInterceptor.language, i18n_language);
......
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