@ -29,6 +29,7 @@ func (t *GoodCtl) ListGood() {
goods, err := models.GetGoodsByActivityId(activityId, areaId)
for index := range goods {
goods[index].GoodType = option.PostFeeType
goods[index].Postage = option.PostFee
}
t.CheckErr(err)
t.JSON(goods)
@ -233,7 +233,7 @@ func (t *UserCtl) Login() {
jwtToken, err := jwt.GenJwtToken(define.TYPE_LIVEUSER, user.Id, 0, 0, 0, 0)
jwtToken, err := jwt.GenJwtToken(define.TYPE_H5USER, user.Id, 0, 0, 0, 0)
t.SetSession(define.TOKEN, jwtToken)
@ -24,8 +24,9 @@ type CustomerGoods struct {
Desc string `json:"desc" xorm:"not null default '' comment('商品介绍') VARCHAR(255)"`
// 无关变量
GoodType int `json:"good_type" xorm:"-"`
Qrcode string `json:"qrcode,omitempty" xorm:"-"`
Postage float64 `json:"postage" xorm:"-"`
func (t *CustomerGoods) TableName() string {
@ -80,7 +80,6 @@ const (
const (
TYPE_H5USER = "h5user"
TYPE_LIVEUSER = "live_user"
TYPE_CUSTOMER = "customer"
TYPE_ENTRYPEOPLE = "entry_people"
)