Skip to content

Commit

Permalink
Merge pull request #216 from Tobeyw/dev-mindy
Browse files Browse the repository at this point in the history
fix value of market
  • Loading branch information
Tobeyw committed May 18, 2023
2 parents 2cfbccd + 34cfaac commit 54eff9e
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 54eff9e

Please sign in to comment.