From e1105f3f478c256cf8d7f4d766ec1b2772c8c292 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 12 Sep 2024 15:53:07 +0800 Subject: [PATCH] 1 --- app/db/db_store.go | 5 +++-- app/svc/svc_order.go | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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) {