Kaynağa Gözat

修改微信授权接口

pull/385/head
wanjing 10 ay önce
ebeveyn
işleme
85926a8050
2 değiştirilmiş dosya ile 0 ekleme ve 40 silme
  1. +0
    -17
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/controller/WxController.java
  2. +0
    -23
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/vo/WxAuthorizeVo.java

+ 0
- 17
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/controller/WxController.java Dosyayı Görüntüle

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

+ 0
- 23
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/vo/WxAuthorizeVo.java Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet