mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update ftp密码
This commit is contained in:
@@ -129,6 +129,26 @@ public class MemberController extends BaseController {
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 支付寶一键登录
|
||||
* http://localhost:8080/uniapp/member/wechatLogin
|
||||
*/
|
||||
@PostMapping("/alipayLogin")
|
||||
public RestApiResponse<?> alipayLogin(HttpServletRequest request, @RequestBody WechatLoginDTO dto) {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
// 获取小程序appid
|
||||
String appId = request.getHeader("appId");
|
||||
dto.setAppId(appId);
|
||||
String memberToken = memberService.wechatLogin(dto);
|
||||
response = new RestApiResponse<>(ImmutableMap.of("memberToken", memberToken));
|
||||
} catch (Exception e) {
|
||||
logger.error("微信登录异常 param:{}", JSON.toJSONString(dto), e);
|
||||
response = new RestApiResponse<>(ReturnCodeEnum.CODE_WECHAT_LOGIN_ERROR);
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 接收并处理前端用户信息
|
||||
* <p>
|
||||
|
||||
Reference in New Issue
Block a user