public class WxMnpSecCheckApi extends WxBaseHttpApi
| 构造器和说明 |
|---|
WxMnpSecCheckApi() |
| 限定符和类型 | 方法和说明 |
|---|---|
static WxMnpSecCheckApi |
getInstance() |
void |
imgSecCheck(String accessToken,
File file)
security.imgSecCheck
校验一张图片是否含有违法违规内容。
|
void |
imgSecCheck(String accessToken,
InputStream inputStream)
security.imgSecCheck
校验一张图片是否含有违法违规内容。
|
String |
mediaCheckAsync(String accessToken,
String mediaUrl,
int mediaType)
security.mediaCheckAsync
异步校验图片/音频是否含有违法违规内容。
|
void |
msgSecCheck(String accessToken,
String content)
security.msgSecCheck
检查一段文本是否含有违法违规内容。
|
get, getInputStream, post, post, postInputStream, upload, uploadpublic static WxMnpSecCheckApi getInstance()
public void imgSecCheck(String accessToken, File file)
accessToken - file - public void imgSecCheck(String accessToken, InputStream inputStream) throws IOException
accessToken - inputStream - top.codewood.wx.common.bean.error.WxErrorExceptionIOExceptionpublic String mediaCheckAsync(String accessToken, String mediaUrl, int mediaType)
accessToken - mediaUrl - 要检测的多媒体urlmediaType - 1:音频;2:图片public void msgSecCheck(String accessToken, String content)
accessToken - content - top.codewood.wx.common.bean.error.WxErrorExceptionCopyright © 2021. All rights reserved.