Commit a133ae3e authored by Quxl's avatar Quxl

x

parent a1e5dc9b
...@@ -171,6 +171,20 @@ public class UserController { ...@@ -171,6 +171,20 @@ public class UserController {
return userService.sendSms(params); return userService.sendSms(params);
} }
@ApiOperation("小程序登陆")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name = "openId", dataType = "String", required = false, value = "OPENID", defaultValue = ""),
@ApiImplicitParam(paramType = "query", name = "langID", dataType = "String", required = false, value = "语言", defaultValue = "936"),
@ApiImplicitParam(paramType = "query", name = "terminal", dataType = "String", required = true, value = "终端标识", defaultValue = "wechat"),
@ApiImplicitParam(paramType = "query", name = "sign", dataType = "String", required = true, value = "签名", defaultValue = ""),
@ApiImplicitParam(paramType = "query", name = "timestamp", dataType = "String", required = true, value = "时间戳", defaultValue = "")
})
@RequestMapping(value = "/logoutByOpenId",method=RequestMethod.POST)
public String logoutByOpenId(String openId, String langID, HttpServletRequest request, HttpServletResponse response) {
userService.deleteOpenId(openId);
return Rjx.jsonOk().toJson();
}
@ApiOperation("小程序登陆") @ApiOperation("小程序登陆")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name = "openId", dataType = "String", required = false, value = "OPENID", defaultValue = ""), @ApiImplicitParam(paramType = "query", name = "openId", dataType = "String", required = false, value = "OPENID", defaultValue = ""),
......
...@@ -37,4 +37,6 @@ public interface UserService { ...@@ -37,4 +37,6 @@ public interface UserService {
public TCustomer getCustomerByOpenId(String openId); public TCustomer getCustomerByOpenId(String openId);
public void deleteOpenId(String openId);
} }
...@@ -560,5 +560,10 @@ public class UserServiceImpl implements UserService { ...@@ -560,5 +560,10 @@ public class UserServiceImpl implements UserService {
return null; return null;
} }
} }
@Override
public void deleteOpenId(String openId) {
jdbcTemplate.update("update tCustomer set sOpenID = ? where sOpenID = ?", null, openId);
}
} }
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