Skip to content

Commit

Permalink
fix value of market
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobeyw committed May 18, 2023
1 parent 3d93045 commit 34cfaac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neo3fura_http/biz/api/src.GetNFTActivityByAsset.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (me *T) GetNFTActivityByAsset(args struct {
r2["image"] = ""
r2["name"] = item["name"]
r2["txid"] = item["txid"]

market := item["market"]
if len(item["properties"].(primitive.A)) > 0 {
properties := item["properties"].(primitive.A)[0].(map[string]interface{})
if properties["properties"] != nil {
Expand Down Expand Up @@ -245,7 +245,7 @@ func (me *T) GetNFTActivityByAsset(args struct {
if err != nil {
return err
}
auctionInfo, err := me.GetAuction(nonce, args.Market.Val())
auctionInfo, err := me.GetAuction(nonce, market.(string))
if err != nil {
return err
}
Expand Down Expand Up @@ -400,7 +400,7 @@ func (me *T) GetNFTActivityByAsset(args struct {
return nil
}

//获取上架的数据 ()
// 获取上架的数据 ()
func (me T) GetAuction(nonce int64, market string) (map[string]interface{}, error) {
message := make(json.RawMessage, 0)
ret := &message
Expand Down

0 comments on commit 34cfaac

Please sign in to comment.