增加微信小程序appid和secret
This commit is contained in:
@ -20,14 +20,14 @@ public class AuthController {
|
||||
@Autowired
|
||||
private JwtUtil jwtUtil;
|
||||
|
||||
@ApiOperation(value = "获取微信openId", notes = "通过微信code注册")
|
||||
@ApiOperation(value = "获取微信openId", notes = "获取微信openId")
|
||||
@PostMapping("/mini-program/getWxOpenId")
|
||||
public Result<String> getWxOpenId(@RequestParam("code") String code) {
|
||||
String openId= userService.getWxOpenId(code);
|
||||
return Result.ok(openId);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取微信手机号", notes = "通过微信code注册")
|
||||
@ApiOperation(value = "获取微信手机号", notes = "获取微信手机号")
|
||||
@PostMapping("/mini-program/getWxPhoneNumber")
|
||||
public Result<String> getWxPhoneNumber(@RequestParam("phoneCode") String phoneCode) {
|
||||
String phoneNumber= userService.getWxPhoneNumber(phoneCode);
|
||||
|
||||
@ -68,5 +68,5 @@ wechat:
|
||||
miniapp:
|
||||
apiurl: https://api.weixin.qq.com
|
||||
appid: wx25e1ad1a70c326de
|
||||
secret: your_secret
|
||||
secret: e0633b08d915a844f7ae7e4495d9e854
|
||||
grantType: authorization_code
|
||||
Reference in New Issue
Block a user