修复获取小程序二维码时参数名称错误和数据格式错误的问题
This commit is contained in:
@@ -54,10 +54,10 @@ public class WxMaQrcodeServiceImpl implements WxMaQrcodeService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File createWxCodeLimit(String scene, String page, int width, boolean autoColor, WxMaCodeLineColor lineColor) throws WxErrorException {
|
public File createWxCodeLimit(String scene, String path, int width, boolean autoColor, WxMaCodeLineColor lineColor) throws WxErrorException {
|
||||||
WxMaWxcodeLimit wxMaWxcodeLimit = new WxMaWxcodeLimit();
|
WxMaWxcodeLimit wxMaWxcodeLimit = new WxMaWxcodeLimit();
|
||||||
wxMaWxcodeLimit.setScene(scene);
|
wxMaWxcodeLimit.setScene(scene);
|
||||||
wxMaWxcodeLimit.setPage(page);
|
wxMaWxcodeLimit.setPath(path);
|
||||||
wxMaWxcodeLimit.setWidth(width);
|
wxMaWxcodeLimit.setWidth(width);
|
||||||
wxMaWxcodeLimit.setAutoColor(autoColor);
|
wxMaWxcodeLimit.setAutoColor(autoColor);
|
||||||
wxMaWxcodeLimit.setLineColor(lineColor);
|
wxMaWxcodeLimit.setLineColor(lineColor);
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import java.io.Serializable;
|
|||||||
public class WxMaWxcodeLimit extends AbstractWxMaQrcodeWrapper implements Serializable {
|
public class WxMaWxcodeLimit extends AbstractWxMaQrcodeWrapper implements Serializable {
|
||||||
private static final long serialVersionUID = 4782193774524960401L;
|
private static final long serialVersionUID = 4782193774524960401L;
|
||||||
private String scene;
|
private String scene;
|
||||||
private String page;
|
private String path;
|
||||||
|
|
||||||
private int width = 430;
|
private int width = 430;
|
||||||
|
|
||||||
@@ -31,4 +31,8 @@ public class WxMaWxcodeLimit extends AbstractWxMaQrcodeWrapper implements Serial
|
|||||||
return WxMaGsonBuilder.create().fromJson(json, WxMaWxcodeLimit.class);
|
return WxMaGsonBuilder.create().fromJson(json, WxMaWxcodeLimit.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
return super.toString();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user