Skip to content

Commit

Permalink
fix video for image
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobeyw committed May 23, 2024
1 parent 8a73382 commit 0ab1cd2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions neo3fura_http/biz/api/src.GetNFTByContractHashTokenId.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ package api
import (
"encoding/base64"
"encoding/json"
"math"
"strconv"
"strings"
"time"

"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"math"

"neo3fura_http/lib/type/NFTstate"
"neo3fura_http/lib/type/h160"
"neo3fura_http/lib/type/strval"
"neo3fura_http/var/stderr"
"strconv"
"strings"
"time"
)

func (me *T) GetNFTByContractHashTokenId(args struct {
Expand Down Expand Up @@ -306,7 +308,7 @@ func (me *T) GetNFTByContractHashTokenId(args struct {
}
}

if item["name"] != nil && item["name"].(string) == "Nuanced Floral Symphony" || item["name"].(string) == "Sunshine #1" || strings.HasPrefix(item["name"].(string), "Virtual Visions") {
if item["name"] != nil && (item["name"].(string) == "Nuanced Floral Symphony" || item["name"].(string) == "Sunshine #1" || strings.HasPrefix(item["name"].(string), "Virtual Visions")) {
item["video"] = item["image"]
delete(item, "image")
}
Expand Down

0 comments on commit 0ab1cd2

Please sign in to comment.