by Robin at 20240112; fix

This commit is contained in:
Leufolium 2024-01-22 15:13:52 +08:00
parent 87f088aeaa
commit f91231f5b3
2 changed files with 6 additions and 1 deletions

View File

@ -2027,7 +2027,7 @@ func (v *Vas) UnlockMembership(ctx *gin.Context, mid int64, product *dbstruct.Pr
Mid: goproto.Int64(mid),
ProductId: goproto.String(productId),
Ct: goproto.Int64(timeNow),
Means: goproto.String(dbstruct.UserVasUnlockMeansMoney),
Means: goproto.String(dbstruct.UserVasUnlockMembershipMeansMoney),
OrderId: order.ID,
}
err = v.store.CreateUserVasMembershipUnlock(ctx, tx, userVasMembershipUnlock)

View File

@ -614,6 +614,11 @@ const (
UserVasUnlockMeansMoney = "money" // 现金解锁
)
const (
UserVasUnlockMembershipMeansCoins = "coins" // 金币解锁
UserVasUnlockMembershipMeansMoney = "money" // 现金解锁
)
type UserVasUnlock struct {
Id *int64 `json:"id" db:"id"`
Mid *int64 `json:"mid" db:"mid"`