增加微信小程序appid和secret

This commit is contained in:
2025-07-27 10:20:22 +08:00
parent d0ea6825db
commit 892ce95919
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -68,5 +68,5 @@ wechat:
miniapp:
apiurl: https://api.weixin.qq.com
appid: wx25e1ad1a70c326de
secret: your_secret
secret: e0633b08d915a844f7ae7e4495d9e854
grantType: authorization_code