小程序内容安全接口图片和文字传什么都返回ok
HttpPost httpPost = new HttpPost(serverUrl);
httpPost.setHeader("Accept", "application/json");
httpPost.setHeader("Content-Type", "application/json");
StringEntity entity = new StringEntity("{\"content\":\""+content+"\"}");
httpPost.setEntity(entity);
HttpResponse response = httpClient.execute(httpPost);// 执行提交
if(response.getStatusLine().getStatusCode()==200){
HttpEntity responseEntity = response.getEntity();
result = EntityUtils.toString(responseEntity,"UTF-8");
}
调用API传文字都返回OK,图片传图也返回OK,不知道什么才算是违规违法内容。服务端JAVA实现调的接口