Browse Source

user red pack

master
黄梓健 5 years ago
parent
commit
54ef0333b8
  1. 4
      models/shake_red_envelope_record.go
  2. 1
      services/live/live.go
  3. 315
      test/bindata.go
  4. 5
      utils/define/define.go

4
models/shake_red_envelope_record.go

@ -73,8 +73,8 @@ func (t *ShakeRedEnvelopeRecord) UpdateById(id int64, field ...string) (int64, e
func GetRedEnvelopesByUserId(userId, activityId, rehearsalId int64) ([]*ShakeRedEnvelopeRecord, error) {
records := make([]*ShakeRedEnvelopeRecord, 0)
err := core.GetXormAuto().Where("user_id=? and rehearsal_id=? and activity_id=? and "+
"is_delete=0 and is_draw<>-1", rehearsalId, activityId, userId).
Desc("created_at").Find(&records)
"is_delete=0 and is_draw<>-1", userId, rehearsalId, activityId).Desc("created_at").
Find(&records)
for index := range records {
records[index].IsValid = true
}

1
services/live/live.go

@ -1 +0,0 @@
package live

315
test/bindata.go
File diff suppressed because it is too large
View File

5
utils/define/define.go

@ -99,9 +99,12 @@ const (
// 欧轩 -> 服务商
//ApiKey = `5x201c8zn43cg675204594cab5423320`
//AppId = `wx662a1633304bfd42`
//Secret = `90df40859d20c95fbb047d48ccbe0a30`
//Secret = `7e4ecfe06ad1e075c210059d5b0162a3`
//MchId = `1441266702`
//SubMchId = `1594049151`
// 认证服务号:欧轩(用于申请微信服务商)
//AppID:wx662a1633304bfd42
//密钥:7e4ecfe06ad1e075c210059d5b0162a3
WxHost = `https://api.mch.weixin.qq.com`
WxBack = `https://api2.mch.weixin.qq.com`

Loading…
Cancel
Save