diff --git a/models/shake_red_envelope_record.go b/models/shake_red_envelope_record.go index 5c009a0..e689fbd 100644 --- a/models/shake_red_envelope_record.go +++ b/models/shake_red_envelope_record.go @@ -86,6 +86,6 @@ func GetRedEnvelopesByUserId(userId int64) ([]*ShakeRedEnvelopeRecord, error) { } func (t *ShakeRedEnvelopeRecord) GetLiveRedPackRecord(id, rehearsalId interface{}) (bool, error) { - return core.GetXormAuto().Where("is_delete=0 and red_envelope_type = 1 and user_id == 0 "+ + return core.GetXormAuto().Where("is_delete=0 and red_envelope_type = 1 and user_id = 0 and "+ "live_red_envelope_rule_id=? and rehearsal_id=?", id, rehearsalId).Get(t) }