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