mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-09-18 17:48:15 +08:00
🐛 #1259 优化开放平台第三方业务域名设置相关接口返回结果
This commit is contained in:
@@ -231,7 +231,7 @@ public interface WxOpenMaService extends WxMaService {
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public WxOpenResult getWebViewDomainInfo() throws WxErrorException;
|
||||
public WxOpenMaWebDomainResult getWebViewDomainInfo() throws WxErrorException;
|
||||
|
||||
/**
|
||||
* 设置小程序的业务域名
|
||||
@@ -249,7 +249,7 @@ public interface WxOpenMaService extends WxMaService {
|
||||
* @param domainList
|
||||
* @return
|
||||
*/
|
||||
WxOpenResult setWebViewDomainInfo(String action, List<String> domainList) throws WxErrorException;
|
||||
WxOpenMaWebDomainResult setWebViewDomainInfo(String action, List<String> domainList) throws WxErrorException;
|
||||
|
||||
/**
|
||||
* 获取小程序的信息
|
||||
|
@@ -110,7 +110,7 @@ public class WxOpenMaServiceImpl extends WxMaServiceImpl implements WxOpenMaServ
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public WxOpenResult getWebViewDomainInfo() throws WxErrorException {
|
||||
public WxOpenMaWebDomainResult getWebViewDomainInfo() throws WxErrorException {
|
||||
return setWebViewDomainInfo("get", null);
|
||||
}
|
||||
|
||||
@@ -141,9 +141,9 @@ public class WxOpenMaServiceImpl extends WxMaServiceImpl implements WxOpenMaServ
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public WxOpenResult setWebViewDomainInfo(String action, List<String> domainList) throws WxErrorException {
|
||||
public WxOpenMaWebDomainResult setWebViewDomainInfo(String action, List<String> domainList) throws WxErrorException {
|
||||
String response = this.setWebViewDomain(action, domainList);
|
||||
return WxMaGsonBuilder.create().fromJson(response, WxOpenResult.class);
|
||||
return WxMaGsonBuilder.create().fromJson(response, WxOpenMaWebDomainResult.class);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -0,0 +1,18 @@
|
||||
package me.chanjar.weixin.open.bean.result;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class WxOpenMaWebDomainResult extends WxOpenResult {
|
||||
|
||||
private static final long serialVersionUID = -2182687859448940313L;
|
||||
|
||||
@SerializedName("webviewdomain")
|
||||
List<String> webviewdomainList;
|
||||
|
||||
}
|
Reference in New Issue
Block a user