|
@@ -37,13 +37,13 @@ type OrderGood struct { |
|
@@ -37,13 +37,13 @@ type OrderGood struct { |
37
|
}
|
37
|
}
|
38
|
|
38
|
|
39
|
func (g *OrderGood) Status() GoodStatus {
|
39
|
func (g *OrderGood) Status() GoodStatus {
|
40
|
- if g.BonusStatus == BonusWaitPay && g.UseGoodNumber > 0 && g.UseGoodNumber < g.PlanGoodNumber {
|
40
|
+ if g.BonusStatus == BonusWaitPay && g.UseGoodNumber >= 0 && g.UseGoodNumber < g.PlanGoodNumber {
|
41
|
return goodStatusWithGoodsReturn
|
41
|
return goodStatusWithGoodsReturn
|
42
|
}
|
42
|
}
|
43
|
if g.BonusStatus == BonusWaitPay {
|
43
|
if g.BonusStatus == BonusWaitPay {
|
44
|
return goodStatusWait
|
44
|
return goodStatusWait
|
45
|
}
|
45
|
}
|
46
|
- if g.BonusStatus == BonusPaid && g.UseGoodNumber > 0 && g.UseGoodNumber < g.PlanGoodNumber {
|
46
|
+ if g.BonusStatus == BonusPaid && g.UseGoodNumber >= 0 && g.UseGoodNumber < g.PlanGoodNumber {
|
47
|
return goodStatusPayWithGoodsReturn
|
47
|
return goodStatusPayWithGoodsReturn
|
48
|
}
|
48
|
}
|
49
|
if g.BonusStatus == BonusPaid {
|
49
|
if g.BonusStatus == BonusPaid {
|