Commit c9f56ab6 authored by xianjun's avatar xianjun

获取小程序码

parent 74ce14db
......@@ -27,7 +27,6 @@
<dependency>
<groupId>com.yanzuoguang</groupId>
<artifactId>yzg-util-base</artifactId>
<version>1.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
......
package com.yanzuoguang.wxxcx.codeorlink.wxacode;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import com.sun.org.apache.regexp.internal.RE;
import com.yanzuoguang.util.helper.CheckerHelper;
import com.yanzuoguang.util.helper.HttpHelper;
import com.yanzuoguang.util.helper.JsonHelper;
import com.yanzuoguang.wxxcx.base.*;
/**
......@@ -43,14 +40,9 @@ public class WxXcxWxaCodeGetUnlimitedRequest implements WxXcxRequestUrl, WxXcxRe
return JSON.toJSONString(req);
}
public WxXcxWxaCodeGetUnlimitedRes getResponse() {
public byte[] getResponse() {
checkParam(req);
return this.wxXcxByteArrayRequest.request(this, response -> {
WxXcxWxaCodeGetUnlimitedRes ret = new WxXcxWxaCodeGetUnlimitedRes();
ret.setData(response);
WxXcxAssert.assertBaseError(ret);
return ret;
});
return this.wxXcxByteArrayRequest.request(this, response -> response);
}
private void checkParam(WxXcxWxaCodeGetUnlimitedReq req) {
......
......@@ -3,7 +3,6 @@ package com.yanzuoguang.wxxcx.codeorlink.wxacode.service.impl;
import com.yanzuoguang.wxxcx.base.WxXcxAccessToken;
import com.yanzuoguang.wxxcx.base.WxXcxByteArrayRequest;
import com.yanzuoguang.wxxcx.base.WxXcxConfig;
import com.yanzuoguang.wxxcx.base.WxXcxRequest;
import com.yanzuoguang.wxxcx.codeorlink.wxacode.WxXcxWxaCodeGetUnlimitedReq;
import com.yanzuoguang.wxxcx.codeorlink.wxacode.WxXcxWxaCodeGetUnlimitedRequest;
import com.yanzuoguang.wxxcx.codeorlink.wxacode.WxXcxWxaCodeGetUnlimitedRes;
......@@ -35,6 +34,8 @@ public class WxXcxWxaCodeGetUnlimitedServiceImpl implements WxXcxWxaCodeGetUnlim
@Override
public WxXcxWxaCodeGetUnlimitedRes getWxaCodeGetUnlimited(WxXcxAccessToken accessToken, WxXcxWxaCodeGetUnlimitedReq req) {
WxXcxWxaCodeGetUnlimitedRequest request = new WxXcxWxaCodeGetUnlimitedRequest(wxXcxConfig, wxXcxByteArrayRequest, accessToken, req);
return request.getResponse();
WxXcxWxaCodeGetUnlimitedRes res = new WxXcxWxaCodeGetUnlimitedRes();
res.setData(request.getResponse());
return res;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment