diff --git a/card_pack/api.go b/card_pack/api.go index 7020e50..40b4192 100644 --- a/card_pack/api.go +++ b/card_pack/api.go @@ -7,6 +7,7 @@ import ( zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" "errors" "fmt" + "github.com/tidwall/gjson" "time" "xorm.io/xorm" ) @@ -34,6 +35,9 @@ func CardPackSend(engine *xorm.Engine, args map[string]interface{}) (string, err if err2 != nil { return "", err2 } + if gjson.Get(send, "success").Bool() == false { + return "", errors.New("识别失败") + } //存入记录 ext := map[string]interface{}{ "send": send,