@@ -76,24 +76,25 @@ public File createWxaCode(String path) throws WxErrorException {
7676 }
7777
7878 @ Override
79- public byte [] createWxaCodeUnlimitBytes (String scene , String page , String envVersion , int width , boolean autoColor ,
79+ public byte [] createWxaCodeUnlimitBytes (String scene , String page , boolean checkPath , String envVersion , int width , boolean autoColor ,
8080 WxMaCodeLineColor lineColor , boolean isHyaline ) throws WxErrorException {
8181 return this .service .execute (QrcodeBytesRequestExecutor .create (this .service .getRequestHttp ()),
82- GET_WXACODE_UNLIMIT_URL , this .buildWxaCodeUnlimit (scene , page , envVersion , width , autoColor , lineColor , isHyaline ));
82+ GET_WXACODE_UNLIMIT_URL , this .buildWxaCodeUnlimit (scene , page , checkPath , envVersion , width , autoColor , lineColor , isHyaline ));
8383 }
8484
8585 @ Override
86- public File createWxaCodeUnlimit (String scene , String page , String envVersion , int width , boolean autoColor ,
86+ public File createWxaCodeUnlimit (String scene , String page , boolean checkPath , String envVersion , int width , boolean autoColor ,
8787 WxMaCodeLineColor lineColor , boolean isHyaline ) throws WxErrorException {
8888 return this .service .execute (QrcodeRequestExecutor .create (this .service .getRequestHttp ()),
89- GET_WXACODE_UNLIMIT_URL , this .buildWxaCodeUnlimit (scene , page , envVersion , width , autoColor , lineColor , isHyaline ));
89+ GET_WXACODE_UNLIMIT_URL , this .buildWxaCodeUnlimit (scene , page , checkPath , envVersion , width , autoColor , lineColor , isHyaline ));
9090 }
9191
92- private WxaCodeUnlimit buildWxaCodeUnlimit (String scene , String page , String envVersion , int width , boolean autoColor ,
92+ private WxaCodeUnlimit buildWxaCodeUnlimit (String scene , String page , boolean checkPath , String envVersion , int width , boolean autoColor ,
9393 WxMaCodeLineColor lineColor , boolean isHyaline ) {
9494 WxaCodeUnlimit wxaCodeUnlimit = new WxaCodeUnlimit ();
9595 wxaCodeUnlimit .setScene (scene );
9696 wxaCodeUnlimit .setPage (page );
97+ wxaCodeUnlimit .setCheckPath (checkPath );
9798 wxaCodeUnlimit .setEnvVersion (envVersion );
9899 wxaCodeUnlimit .setWidth (width );
99100 wxaCodeUnlimit .setAutoColor (autoColor );
@@ -105,7 +106,7 @@ private WxaCodeUnlimit buildWxaCodeUnlimit(String scene, String page, String env
105106
106107 @ Override
107108 public File createWxaCodeUnlimit (String scene , String page ) throws WxErrorException {
108- return this .createWxaCodeUnlimit (scene , page , "release" , 430 , true , null , false );
109+ return this .createWxaCodeUnlimit (scene , page , true , "release" , 430 , true , null , false );
109110 }
110111
111112 @ Override
@@ -144,15 +145,15 @@ public File createWxaCode(String path, String filePath) throws WxErrorException
144145 }
145146
146147 @ Override
147- public File createWxaCodeUnlimit (String scene , String page , String filePath , String envVersion , int width , boolean autoColor ,
148+ public File createWxaCodeUnlimit (String scene , String page , String filePath , boolean checkPath , String envVersion , int width , boolean autoColor ,
148149 WxMaCodeLineColor lineColor , boolean isHyaline ) throws WxErrorException {
149150 return this .service .execute (QrcodeRequestExecutor .create (this .service .getRequestHttp (), filePath ),
150- GET_WXACODE_UNLIMIT_URL , this .buildWxaCodeUnlimit (scene , page , envVersion , width , autoColor , lineColor , isHyaline ));
151+ GET_WXACODE_UNLIMIT_URL , this .buildWxaCodeUnlimit (scene , page , checkPath , envVersion , width , autoColor , lineColor , isHyaline ));
151152 }
152153
153154 @ Override
154155 public File createWxaCodeUnlimit (String scene , String page , String filePath ) throws WxErrorException {
155- return this .createWxaCodeUnlimit (scene , page , filePath , "release" , 430 , true , null , false );
156+ return this .createWxaCodeUnlimit (scene , page , filePath , true , "release" , 430 , true , null , false );
156157 }
157158
158159}
0 commit comments