Browse Source

证件识别api

master
huangjiajun 1 year ago
parent
commit
d93a7131b5
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      card_pack/api.go

+ 4
- 0
card_pack/api.go View File

@@ -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,


Loading…
Cancel
Save