|
@@ -32,7 +32,7 @@ public class PassportController {
|
|
|
|
|
|
public final Cache<String, String> smsTimeoutCache = CacheBuilder.newBuilder().expireAfterWrite(5, TimeUnit.MINUTES).build();
|
|
|
|
|
|
- @ApiOperation(value = "小程序登录", notes = "小程序授权登录")
|
|
|
+ @ApiOperation(value = "小程序登录", notes = "小程序授权登录,微信登录传参:loginType=wx,code; 密码登录:loginType=pwd, phone, password")
|
|
|
@ApiParam(name = "params", value = "登录参数")
|
|
|
@PostMapping("login")
|
|
|
public Result<Object> login(@RequestBody MemberInitParams params) {
|
|
@@ -50,7 +50,8 @@ public class PassportController {
|
|
|
return passportService.login(params);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "小程序登录", notes = "微信一键登录解密手机号")
|
|
|
+
|
|
|
+ @ApiOperation(value = "小程序登录", notes = "微信登录解密手机号")
|
|
|
@PostMapping("decodePhoneNumber")
|
|
|
public Result<Object> decodePhoneNumber(@RequestParam(value = "code", required = true) String code,
|
|
|
@RequestParam(value = "encryptedData", required = true) String encryptedData,
|