This commit is contained in:
parent
beca25818d
commit
1a26816770
|
|
@ -93,7 +93,7 @@ public class UsersAction {
|
|||
* @param code
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value="/wechatLogin",method=RequestMethod.GET)
|
||||
@RequestMapping(value="/wechatLogin",method=RequestMethod.POST)
|
||||
public JsonResult<?> wechatLogin(String code) {
|
||||
return userService.wechatLogin(code);
|
||||
}
|
||||
|
|
@ -103,11 +103,22 @@ public class UsersAction {
|
|||
* @param unionId
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value="/wechatValidate",method=RequestMethod.GET)
|
||||
@RequestMapping(value="/wechatValidate",method=RequestMethod.POST)
|
||||
public JsonResult<?> wechatValidate(String unionId) {
|
||||
return userService.wechatValidate(unionId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 微信登录验证
|
||||
* @param unionId
|
||||
* @param phoneNum
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value="/bindPhone",method=RequestMethod.POST)
|
||||
public JsonResult<?> bindPhone(String unionId, String phoneNum) {
|
||||
return userService.bindPhone(unionId, phoneNum);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更多用户数据
|
||||
* @param userId
|
||||
|
|
|
|||
Loading…
Reference in New Issue