新增更新公众号openid接口
This commit is contained in:
@@ -64,6 +64,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
"/api/system/user/batchBackUserId",
|
||||
"/api/system/user/getByPhone/**",
|
||||
"/api/system/user/getByUnionid/**",
|
||||
"/api/system/user/updateUserOfficeOpenidWithoutLogin",
|
||||
"/api/system/user-referee/getReferee/**",
|
||||
"/api/system/dict-data/page",
|
||||
"/lvQ4EoivKJ.txt"
|
||||
|
||||
@@ -438,6 +438,17 @@ public class UserController extends BaseController {
|
||||
return fail("操作失败");
|
||||
}
|
||||
|
||||
@PostMapping("/updateUserOfficeOpenidWithoutLogin")
|
||||
@ApiOperation("更新用户公众号openid(无需登陆)")
|
||||
public ApiResult<?> updateUserOfficeOpenidWithoutLogin(@RequestBody User user) {
|
||||
if (user.getAuthCode() == null || !user.getAuthCode().equals("1700083"))
|
||||
return fail("参数错误");
|
||||
if (userService.updateUser(user)) {
|
||||
return success("操作成功");
|
||||
}
|
||||
return fail("操作失败");
|
||||
}
|
||||
|
||||
@ApiOperation("获取用户(无需登陆)")
|
||||
@PostMapping("/getUserWithoutLogin")
|
||||
public ApiResult<?> getUserWithoutLogin(@RequestBody User user) {
|
||||
|
||||
Reference in New Issue
Block a user