This commit is contained in:
parent
beca25818d
commit
1a26816770
|
|
@ -93,7 +93,7 @@ public class UsersAction {
|
||||||
* @param code
|
* @param code
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/wechatLogin",method=RequestMethod.GET)
|
@RequestMapping(value="/wechatLogin",method=RequestMethod.POST)
|
||||||
public JsonResult<?> wechatLogin(String code) {
|
public JsonResult<?> wechatLogin(String code) {
|
||||||
return userService.wechatLogin(code);
|
return userService.wechatLogin(code);
|
||||||
}
|
}
|
||||||
|
|
@ -103,11 +103,22 @@ public class UsersAction {
|
||||||
* @param unionId
|
* @param unionId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/wechatValidate",method=RequestMethod.GET)
|
@RequestMapping(value="/wechatValidate",method=RequestMethod.POST)
|
||||||
public JsonResult<?> wechatValidate(String unionId) {
|
public JsonResult<?> wechatValidate(String unionId) {
|
||||||
return userService.wechatValidate(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
|
* @param userId
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue