|
@@ -48,9 +48,15 @@ func (l *SensitiveMethodLogic) SensitiveMethod(in *common.SensitiveRequest) (*co
|
|
|
for k, v := range attachments {
|
|
|
vs := mc.StructToMapMore(v)
|
|
|
var msg []string
|
|
|
- if mc.InterfaceToStr(vs["status"]) != "200" {
|
|
|
+ if mc.InterfaceToStr(vs["state"]) != "200" {
|
|
|
isAttach = true
|
|
|
- msg = append(msg, "附件校验敏感词失败")
|
|
|
+ if mc.InterfaceToStr(vs["state"]) == "300" {
|
|
|
+ msg = append(msg, "敏感词校验附件下载错误")
|
|
|
+ } else if mc.InterfaceToStr(vs["state"]) == "300" {
|
|
|
+ msg = append(msg, "敏感词校验附件解析错误")
|
|
|
+ } else {
|
|
|
+ msg = append(msg, "附件校验敏感词失败")
|
|
|
+ }
|
|
|
} else if s, ok := vs["sensitive"]; ok && s != nil && len(s.([]string)) > 0 {
|
|
|
isAttach = true
|
|
|
msg, _ = vs["sensitive"].([]string)
|