From 3237d4f0966cbfbe99a27a2d991039c3a93376f8 Mon Sep 17 00:00:00 2001 From: howell <2827207845@qq.com> Date: Fri, 7 Jan 2022 15:17:39 +0800 Subject: [PATCH] feat: gorm3 --- internal/api/mobile/order/success.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/mobile/order/success.go b/internal/api/mobile/order/success.go index 65350f7..6d35700 100755 --- a/internal/api/mobile/order/success.go +++ b/internal/api/mobile/order/success.go @@ -200,7 +200,7 @@ func ConfirmOrderTradeSuc(orderInfo *order.Information, clientIP ...string) erro } if userInfo.Level == 0 && orderInfo.SharerID != orderInfo.UserID { var s1 user.Information - if e := tx.First(&s1, "user_id = ?", orderInfo.SharerID).Error; e != nil { + if e := tx.First(&s1, "id = ?", orderInfo.SharerID).Error; e != nil { return e } if s1.Level == 2 {