huangjiajun 3 months ago
parent
commit
e1105f3f47
2 changed files with 4 additions and 2 deletions
  1. +3
    -2
      app/db/db_store.go
  2. +1
    -0
      app/svc/svc_order.go

+ 3
- 2
app/db/db_store.go View File

@@ -70,15 +70,16 @@ where %s %s`
}
func GetStoreId(sess *xorm.Session, id string) *model.CommunityTeamStore {
var data model.CommunityTeamStore
get, err := sess.Where("id=?", id).Get(&data)
get, err := sess.Where("uid=?", id).Get(&data)
if get == false || err != nil {
return nil
}
return &data
}

func GetStoreIdEg(eg *xorm.Engine, id string) *model.CommunityTeamStore {
var data model.CommunityTeamStore
get, err := eg.Where("id=?", id).Get(&data)
get, err := eg.Where("uid=?", id).Get(&data)
if get == false || err != nil {
return nil
}


+ 1
- 0
app/svc/svc_order.go View File

@@ -536,6 +536,7 @@ func OrderCreate(c *gin.Context) {
return
}
sess.Commit()
e.OutSuc(c, map[string]string{"oid": ordId}, nil)
return
}
func OrderTotal(c *gin.Context) {


Loading…
Cancel
Save