From 2845bab6a92a4f5055f7152fbc4b1ae01aa9e863 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Tue, 19 Dec 2023 17:32:17 +0800 Subject: [PATCH] =?UTF-8?q?:art=EF=BC=9A=20=E8=A7=84=E8=8C=83=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=EF=BC=8C=E4=BC=98=E5=8C=96=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/me/chanjar/weixin/open/api/WxOpenMaService.java | 8 ++++---- .../chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java | 6 +++--- ...VerifyInfo.java => WxMaVerifyBetaWeappVerifyInfo.java} | 3 ++- ...ppMessage.java => WxOpenMaVerifyBetaWeappMessage.java} | 6 +++--- 4 files changed, 12 insertions(+), 11 deletions(-) rename weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/{WxMaVerifybetaweappVerifyInfo.java => WxMaVerifyBetaWeappVerifyInfo.java} (90%) rename weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/{WxOpenMaVerifybetaweappMessage.java => WxOpenMaVerifyBetaWeappMessage.java} (71%) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java index afbcd3c2d..5c2dca254 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenMaService.java @@ -6,7 +6,7 @@ import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.open.bean.ma.WxMaPrefetchDomain; import me.chanjar.weixin.open.bean.ma.WxMaScheme; import me.chanjar.weixin.open.bean.message.WxOpenMaSubmitAuditMessage; -import me.chanjar.weixin.open.bean.message.WxOpenMaVerifybetaweappMessage; +import me.chanjar.weixin.open.bean.message.WxOpenMaVerifyBetaWeappMessage; import me.chanjar.weixin.open.bean.result.*; import java.io.File; @@ -116,7 +116,7 @@ public interface WxOpenMaService extends WxMaService { /** * 3. 试用小程序快速认证 */ - String API_VERIFYBETAWEAPP = "https://api.weixin.qq.com/wxa/verifybetaweapp"; + String API_VERIFY_BETA_WEAPP = "https://api.weixin.qq.com/wxa/verifybetaweapp"; /** * 4. 获取授权小程序帐号的可选类目 @@ -451,11 +451,11 @@ public interface WxOpenMaService extends WxMaService { /** * 试用小程序快速认证 * - * @param verifybetaweappMessage the verify mini program message + * @param verifyBetaWeappMessage the verify mini program message * @return the wx open result * @throws WxErrorException the wx error exception */ - WxOpenResult verifybetaweapp(WxOpenMaVerifybetaweappMessage verifybetaweappMessage) throws WxErrorException; + WxOpenResult verifyBetaWeapp(WxOpenMaVerifyBetaWeappMessage verifyBetaWeappMessage) throws WxErrorException; /** * 获取授权小程序帐号的可选类目 diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java index 71790a44d..1056b7509 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java @@ -18,7 +18,7 @@ import me.chanjar.weixin.open.bean.ma.WxMaPrefetchDomain; import me.chanjar.weixin.open.bean.ma.WxMaQrcodeParam; import me.chanjar.weixin.open.bean.ma.WxMaScheme; import me.chanjar.weixin.open.bean.message.WxOpenMaSubmitAuditMessage; -import me.chanjar.weixin.open.bean.message.WxOpenMaVerifybetaweappMessage; +import me.chanjar.weixin.open.bean.message.WxOpenMaVerifyBetaWeappMessage; import me.chanjar.weixin.open.bean.result.*; import me.chanjar.weixin.open.executor.MaQrCodeRequestExecutor; @@ -220,8 +220,8 @@ public class WxOpenMaServiceImpl extends WxMaServiceImpl implements WxOpenMaServ } @Override - public WxOpenResult verifybetaweapp(WxOpenMaVerifybetaweappMessage verifybetaweappMessage) throws WxErrorException { - String response = post(API_VERIFYBETAWEAPP, GSON.toJson(verifybetaweappMessage)); + public WxOpenResult verifyBetaWeapp(WxOpenMaVerifyBetaWeappMessage verifyBetaWeappMessage) throws WxErrorException { + String response = post(API_VERIFY_BETA_WEAPP, GSON.toJson(verifyBetaWeappMessage)); return WxMaGsonBuilder.create().fromJson(response, WxOpenResult.class); } diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaVerifybetaweappVerifyInfo.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaVerifyBetaWeappVerifyInfo.java similarity index 90% rename from weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaVerifybetaweappVerifyInfo.java rename to weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaVerifyBetaWeappVerifyInfo.java index 881163b67..f3005c7de 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaVerifybetaweappVerifyInfo.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaVerifyBetaWeappVerifyInfo.java @@ -12,7 +12,8 @@ import java.io.Serializable; * created on 2023/12/19 */ @Data -public class WxMaVerifybetaweappVerifyInfo implements Serializable { +public class WxMaVerifyBetaWeappVerifyInfo implements Serializable { + private static final long serialVersionUID = 2128265093276395400L; /** * 企业名(需与工商部门登记信息一致);如果是“无主体名称个体工商户”则填“个体户+法人姓名”,例如“个体户张三” diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaVerifybetaweappMessage.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaVerifyBetaWeappMessage.java similarity index 71% rename from weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaVerifybetaweappMessage.java rename to weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaVerifyBetaWeappMessage.java index 63a829111..a6b8b9fdc 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaVerifybetaweappMessage.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaVerifyBetaWeappMessage.java @@ -2,7 +2,7 @@ package me.chanjar.weixin.open.bean.message; import com.google.gson.annotations.SerializedName; import lombok.Data; -import me.chanjar.weixin.open.bean.ma.WxMaVerifybetaweappVerifyInfo; +import me.chanjar.weixin.open.bean.ma.WxMaVerifyBetaWeappVerifyInfo; import java.io.Serializable; @@ -13,12 +13,12 @@ import java.io.Serializable; * created on 2018/9/13 */ @Data -public class WxOpenMaVerifybetaweappMessage implements Serializable { +public class WxOpenMaVerifyBetaWeappMessage implements Serializable { private static final long serialVersionUID = 4595618023108631478L; /** * 企业法人认证需要的信息 */ @SerializedName("verify_info") - private WxMaVerifybetaweappVerifyInfo verifyInfo; + private WxMaVerifyBetaWeappVerifyInfo verifyInfo; }