Skip to content
On this page

公共 API

敏感词接口

WARNING

请优先使用 InputVerify 表单校验 组件,如该组件无法满足需求,再使用该 API。

如有展现的输入内容,必须添加该接口,如输入昵称、留言跟帖等。

  • 接口地址:
    • 正式地址: https://go.163.com/api/common/shareh5.php?act=mgcInfo
    • 测试地址: http://test.go.163.com/api/go/common/shareh5.php?act=mgcInfo
  • 传值方式: POST
  • 传值:
    • data 跟帖内容
  • 返回值 json串:
    • {"retCode":1,"retInfo":"\u9a8c\u8bc1\u6210\u529f","retData":true}
      • retCode = 1
      • retInfo:提示语 【验证成功】
      • retData:数据 【 true:有敏感词 false:没有敏感词 】 //敏感词提示语统一用:你好像不叫这个名字哦,请重新输入
    • {"retCode":-1,"retInfo":"\u63d0\u4ea4\u6210\u529f","retData":""}
      • retCode = -1
      • retInfo : 提示语【参数不能为空】

Released under the MIT License.