up
This commit is contained in:
@@ -11,13 +11,14 @@ func ApiPurchase(r *gin.RouterGroup) {
|
|||||||
r.POST("/addorder", func(ctx *gin.Context) {
|
r.POST("/addorder", func(ctx *gin.Context) {
|
||||||
isAuth, user, data := AuthenticationAuthority(ctx)
|
isAuth, user, data := AuthenticationAuthority(ctx)
|
||||||
if isAuth {
|
if isAuth {
|
||||||
|
fmt.Println(isAuth)
|
||||||
|
fmt.Println(user)
|
||||||
|
fmt.Println(data)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
ReturnJson(ctx, "jsonErr", nil)
|
ReturnJson(ctx, "jsonErr", nil)
|
||||||
}
|
}
|
||||||
fmt.Println(isAuth)
|
|
||||||
fmt.Println(user)
|
|
||||||
fmt.Println(data)
|
|
||||||
ReturnJson(ctx, "apiErr", nil)
|
ReturnJson(ctx, "apiErr", nil)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user