diff --git a/app/db/db_store.go b/app/db/db_store.go index 402c9b9..2de782d 100644 --- a/app/db/db_store.go +++ b/app/db/db_store.go @@ -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 } diff --git a/app/svc/svc_order.go b/app/svc/svc_order.go index d0be942..e68eb04 100644 --- a/app/svc/svc_order.go +++ b/app/svc/svc_order.go @@ -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) {