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