feat: gorm3

master
howell 4 years ago
parent 46c896853f
commit 3237d4f096

@ -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 {

Loading…
Cancel
Save