code: public JSONObject antiPornGif(byte[] imgData) {
          AipRequest request = new AipRequest();
          // check param
  
          JSONObject checkRet = checkImgFormat(imgData, "gif");
          if (!"0".equals(checkRet.getString("error_code"))) {
              return checkRet;
          }
  
          preOperation(request);
          // add API params
          String base64Content = Base64Util.encode(imgData);
          request.addBody("image", base64Content);
          request.setUri(ContentCensorConsts.ANTI_PORN_GIF_URL);
  
          postOperation(request);
  
          return requestServer(request);
      }
docs: GIF色情图像识别
  @param imgData 图片二进制数据
  @return JSONObject