@@ -253,7 +253,7 @@ public interface WxOpenMaService extends WxMaService { | |||||
* @return | * @return | ||||
* @throws WxErrorException | * @throws WxErrorException | ||||
*/ | */ | ||||
WxOpenResult bindTester(String wechatid) throws WxErrorException; | |||||
WxOpenMaBindTesterResult bindTester(String wechatid) throws WxErrorException; | |||||
/** | /** | ||||
* 解除绑定小程序体验者 | * 解除绑定小程序体验者 | ||||
@@ -172,11 +172,11 @@ public class WxOpenMaServiceImpl extends WxMaServiceImpl implements WxOpenMaServ | |||||
* @throws WxErrorException | * @throws WxErrorException | ||||
*/ | */ | ||||
@Override | @Override | ||||
public WxOpenResult bindTester(String wechatid) throws WxErrorException { | |||||
public WxOpenMaBindTesterResult bindTester(String wechatid) throws WxErrorException { | |||||
JsonObject paramJson = new JsonObject(); | JsonObject paramJson = new JsonObject(); | ||||
paramJson.addProperty("wechatid", wechatid); | paramJson.addProperty("wechatid", wechatid); | ||||
String response = post(API_BIND_TESTER, GSON.toJson(paramJson)); | String response = post(API_BIND_TESTER, GSON.toJson(paramJson)); | ||||
return WxMaGsonBuilder.create().fromJson(response, WxOpenResult.class); | |||||
return WxMaGsonBuilder.create().fromJson(response, WxOpenMaBindTesterResult.class); | |||||
} | } | ||||
/** | /** | ||||
@@ -0,0 +1,23 @@ | |||||
package me.chanjar.weixin.open.bean.result; | |||||
import com.google.gson.annotations.SerializedName; | |||||
import lombok.Data; | |||||
import lombok.EqualsAndHashCode; | |||||
import me.chanjar.weixin.open.util.json.WxOpenGsonBuilder; | |||||
@Data | |||||
@EqualsAndHashCode(callSuper = true) | |||||
public class WxOpenMaBindTesterResult extends WxOpenResult { | |||||
private static final long serialVersionUID = -730133894662203011L; | |||||
@SerializedName("userstr") | |||||
private String userstr; | |||||
@Override | |||||
public String toString() { | |||||
return WxOpenGsonBuilder.create().toJson(this); | |||||
} | |||||
} |