11package cn .binarywang .wx .miniapp .api .impl ;
22
3- import java .io .File ;
4-
53import cn .binarywang .wx .miniapp .api .WxMaQrcodeService ;
64import cn .binarywang .wx .miniapp .api .WxMaService ;
75import cn .binarywang .wx .miniapp .bean .WxMaCodeLineColor ;
119import cn .binarywang .wx .miniapp .util .http .QrCodeRequestExecutor ;
1210import me .chanjar .weixin .common .exception .WxErrorException ;
1311
12+ import java .io .File ;
13+
1414/**
1515 * @author <a href="https://github.com/binarywang">Binary Wang</a>
1616 */
@@ -33,42 +33,44 @@ public File createQrcode(String path) throws WxErrorException {
3333 }
3434
3535 @ Override
36- public File createWxaCode (String path , int width , boolean autoColor , WxMaCodeLineColor lineColor ) throws WxErrorException {
36+ public File createWxaCode (String path , int width , boolean autoColor , WxMaCodeLineColor lineColor , boolean isHyaline ) throws WxErrorException {
3737 WxMaWxcode wxMaWxcode = new WxMaWxcode ();
3838 wxMaWxcode .setPath (path );
3939 wxMaWxcode .setWidth (width );
4040 wxMaWxcode .setAutoColor (autoColor );
4141 wxMaWxcode .setLineColor (lineColor );
42+ wxMaWxcode .setHyaline (isHyaline );
4243 return this .wxMaService .execute (new QrCodeRequestExecutor (this .wxMaService .getRequestHttp ()),
4344 GET_WXACODE_URL , wxMaWxcode );
4445 }
4546
4647 @ Override
4748 public File createWxaCode (String path , int width ) throws WxErrorException {
48- return this .createWxaCode (path , width , true , null );
49+ return this .createWxaCode (path , width , true , null , false );
4950 }
5051
5152 @ Override
5253 public File createWxaCode (String path ) throws WxErrorException {
53- return this .createWxaCode (path , 430 , true , null );
54+ return this .createWxaCode (path , 430 , true , null , false );
5455 }
5556
5657 @ Override
57- public File createWxaCodeUnlimit (String scene , String page , int width , boolean autoColor , WxMaCodeLineColor lineColor )
58+ public File createWxaCodeUnlimit (String scene , String page , int width , boolean autoColor , WxMaCodeLineColor lineColor , boolean isHyaline )
5859 throws WxErrorException {
5960 WxaCodeUnlimit wxaCodeUnlimit = new WxaCodeUnlimit ();
6061 wxaCodeUnlimit .setScene (scene );
6162 wxaCodeUnlimit .setPage (page );
6263 wxaCodeUnlimit .setWidth (width );
6364 wxaCodeUnlimit .setAutoColor (autoColor );
6465 wxaCodeUnlimit .setLineColor (lineColor );
66+ wxaCodeUnlimit .setHyaline (isHyaline );
6567 return this .wxMaService .execute (new QrCodeRequestExecutor (this .wxMaService .getRequestHttp ()),
6668 GET_WXACODE_UNLIMIT_URL , wxaCodeUnlimit );
6769 }
6870
6971 @ Override
7072 public File createWxaCodeUnlimit (String scene , String page ) throws WxErrorException {
71- return this .createWxaCodeUnlimit (scene , page , 430 , true , null );
73+ return this .createWxaCodeUnlimit (scene , page , 430 , true , null , false );
7274 }
7375
7476}
0 commit comments