Skip to content

Commit

Permalink
--
Browse files Browse the repository at this point in the history
  • Loading branch information
zqjzqj committed Jan 8, 2021
1 parent f1e35b2 commit fb4fbeb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion secKill/jdSecKill.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,10 @@ func (jsk *jdSecKill) ReqSubmitSecKillOrder(ctx context.Context) error {
jsk.IsOkChan <- struct{}{}
logs.PrintlnInfo("抢购成功,订单编号:", r.Get("orderId").String())
} else {
return errors.New("抢购失败:" + r.Raw)
if r.IsObject() || r.IsArray() {
return errors.New("抢购失败:" + r.Raw)
}
return errors.New("抢购失败,再接再厉")
}
return nil
}
Expand Down

0 comments on commit fb4fbeb

Please sign in to comment.