aaa
This commit is contained in:
@@ -1467,6 +1467,9 @@ func AddressDistinguish(ctx *jxcontext.Context, address string) (result *txcloud
|
||||
db = dao.GetDB()
|
||||
addressDistinguish = &model.AddressDistinguish{Address: address}
|
||||
)
|
||||
if len(address) <= 11 {
|
||||
return result, fmt.Errorf("地址长度过短,请确认后再进行识别!")
|
||||
}
|
||||
//建了个表,有查过的记录就存一下吧
|
||||
if err = dao.GetEntity(db, addressDistinguish, "Address"); err == nil && addressDistinguish.ID != 0 {
|
||||
if err = json.Unmarshal([]byte(addressDistinguish.Info), &result); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user