@Test public void testCheckImage() throws WxErrorException { boolean result = this.wxService.getSecCheckService() .checkImage(new File(ClassLoader.getSystemResource("tmp.png").getFile())); assertTrue(result); }
@Override public boolean checkImage(File file) throws WxErrorException { WxMediaUploadResult result = this.service.execute(MediaUploadRequestExecutor .create(this.service.getRequestHttp()), IMG_SEC_CHECK_URL, file); return result != null; }
WxMaSecCheckServiceImpl implements WxMaSecCheckService { @Override public boolean checkImage(File file) throws WxErrorException { WxMediaUploadResult result = this.service.execute(MediaUploadRequestExecutor .create(this.service.getRequestHttp()), IMG_SEC_CHECK_URL, file); return result != null; } }
WxMaSecCheckServiceImpl implements WxMaSecCheckService { @Override public boolean checkImage(File file) throws WxErrorException { WxMediaUploadResult result = this.service.execute(MediaUploadRequestExecutor .create(this.service.getRequestHttp()), IMG_SEC_CHECK_URL, file); return result != null; } WxMaSecCheckServiceImpl(WxMaService service); }
WxMaSecCheckServiceImpl implements WxMaSecCheckService { @Override public boolean checkImage(File file) throws WxErrorException { WxMediaUploadResult result = this.service.execute(MediaUploadRequestExecutor .create(this.service.getRequestHttp()), IMG_SEC_CHECK_URL, file); return result != null; } WxMaSecCheckServiceImpl(WxMaService service); @Override boolean checkImage(File file); @Override boolean checkMessage(String msgString); }
WxMaSecCheckServiceImpl implements WxMaSecCheckService { @Override public boolean checkImage(File file) throws WxErrorException { WxMediaUploadResult result = this.service.execute(MediaUploadRequestExecutor .create(this.service.getRequestHttp()), IMG_SEC_CHECK_URL, file); return result != null; } WxMaSecCheckServiceImpl(WxMaService service); @Override boolean checkImage(File file); @Override boolean checkMessage(String msgString);  }