🐛 #1259 优化开放平台第三方业务域名设置相关接口返回结果

This commit is contained in:
S
2019-10-30 20:27:46 +08:00
committed by Binary Wang
parent f394a62fad
commit 70e6016d4a
3 changed files with 23 additions and 5 deletions

View File

@ -231,7 +231,7 @@ public interface WxOpenMaService extends WxMaService {
* *
* @return * @return
*/ */
public WxOpenResult getWebViewDomainInfo() throws WxErrorException; public WxOpenMaWebDomainResult getWebViewDomainInfo() throws WxErrorException;
/** /**
* 设置小程序的业务域名 * 设置小程序的业务域名
@ -249,7 +249,7 @@ public interface WxOpenMaService extends WxMaService {
* @param domainList * @param domainList
* @return * @return
*/ */
WxOpenResult setWebViewDomainInfo(String action, List<String> domainList) throws WxErrorException; WxOpenMaWebDomainResult setWebViewDomainInfo(String action, List<String> domainList) throws WxErrorException;
/** /**
* 获取小程序的信息 * 获取小程序的信息

View File

@ -110,7 +110,7 @@ public class WxOpenMaServiceImpl extends WxMaServiceImpl implements WxOpenMaServ
* @return * @return
*/ */
@Override @Override
public WxOpenResult getWebViewDomainInfo() throws WxErrorException { public WxOpenMaWebDomainResult getWebViewDomainInfo() throws WxErrorException {
return setWebViewDomainInfo("get", null); return setWebViewDomainInfo("get", null);
} }
@ -141,9 +141,9 @@ public class WxOpenMaServiceImpl extends WxMaServiceImpl implements WxOpenMaServ
* @return * @return
*/ */
@Override @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); String response = this.setWebViewDomain(action, domainList);
return WxMaGsonBuilder.create().fromJson(response, WxOpenResult.class); return WxMaGsonBuilder.create().fromJson(response, WxOpenMaWebDomainResult.class);
} }

View File

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