This commit is contained in:
aozhiwei 2024-06-24 13:17:46 +08:00
parent 3546e02361
commit 8055191421
2 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,7 @@ func (this *cacheMgr) GetNfts(nfts []*common.NftDto) {
}
}
}
this.batchGetNfts(missNfts)
//this.batchGetNfts(missNfts)
}
for _, val := range nfts {

View File

@ -3,6 +3,7 @@ package shopcart
import (
"f5"
"main/api/v1"
"main/middleware"
)
type ShopCartRouter struct{}
@ -10,6 +11,7 @@ type ShopCartRouter struct{}
func (this *ShopCartRouter) InitRouter() {
api := v1.ApiGroupApp.ShopCartApiGroup
shopCartGroup := f5.GetApp().GetGinEngine().Group("/api/shopcart")
shopCartGroup.Use(middleware.JwtAuth)
shopCartGroup.GET("/list", api.ShopCartApi.List)
shopCartGroup.POST("/add", api.ShopCartApi.Add)
shopCartGroup.POST("/del", api.ShopCartApi.Del)