@ -202,7 +202,7 @@ func ConfirmOrderTradeSuc(orderInfo *order.Information, clientIP ...string) erro
if e := tx.First(&s1, "id = ?", orderInfo.SharerID).Error; e != nil {
return e
}
if s1.Level == 2 {
if s1.Level == 2 && userInfo.ParentID == 0 {
// upgrade 修改了升级逻辑
if e := tx.Model(&userInfo).Updates(user.Information{
Level: 0,