...
|
...
|
@@ -275,6 +275,12 @@ func (serve *OrderBonusService) PayOrderGoodBonus(orderId int64, goodId int64, a |
|
|
continue
|
|
|
}
|
|
|
updateGood = oldOrder.Goods[i]
|
|
|
if updateGood.PartnerBonusPercent < 0 {
|
|
|
return nil
|
|
|
}
|
|
|
if updateGood.BonusStatus == domain.OrderGoodHasPay {
|
|
|
return nil
|
|
|
}
|
|
|
err = updateGood.CurrentBonusStatus.PayPartnerBonus(&updateGood)
|
|
|
if err != nil {
|
|
|
return lib.ThrowError(lib.BUSINESS_ERROR, err.Error())
|
...
|
...
|
|