@@ -32,21 +32,4 @@ public class WxController { | |||
return iWxService.sendMessage(wxMessageRequest); | |||
} | |||
//根据code获取openId且判断用户是否授权 | |||
@GetMapping("/getOpenId/{code}") | |||
public JsonResult checkAuthorize(@PathVariable("code") String code) { | |||
log.info("进入获取openId接口"); | |||
return iWxService.checkAuthorize(code); | |||
} | |||
/** | |||
* 微信授权 | |||
* @param openId | |||
* @return | |||
*/ | |||
@GetMapping("/bind/{openId}") | |||
public JsonResult bind(@PathVariable("openId") String openId) { | |||
log.info("进入获取openId接口"); | |||
return iWxService.bind(openId); | |||
} | |||
} |
@@ -1,23 +0,0 @@ | |||
package com.tuoheng.miniprogram.vo; | |||
import lombok.Data; | |||
/** | |||
* 微信授权登录判断类 | |||
* | |||
* @Author suqin | |||
* @Date 2023/01/09 | |||
*/ | |||
@Data | |||
public class WxAuthorizeVo { | |||
/** | |||
* 是否授权 true授权过 false未授权 | |||
*/ | |||
private Boolean isAuthroize; | |||
/** | |||
* 微信唯一用户标识 | |||
*/ | |||
private String openId; | |||
} |