|
|
@ -228,7 +228,7 @@ func (t *LiveCtl) QueryRedPack() { |
|
|
|
info := new(models.LiveRedPackInfo) |
|
|
|
exist, err := info.GetByOutTradeNo(outTradeNo) |
|
|
|
t.CheckErr(err) |
|
|
|
t.Assert(exist, code.MSG_LIVE_RED_PACK_NOT_EXIST, "直播红包信息不存在") |
|
|
|
t.Assert(exist, code.MSG_LIVE_RED_PACK_INFO_NOT_EXIST, "直播红包信息不存在") |
|
|
|
if res.TradeState == pay_service.CODE_TRADE_SUCCESS { |
|
|
|
info.Status = 1 |
|
|
|
info.UpdateStatusById(info.Id, info.Status) |
|
|
|