Browse Source

lottery

master
黄梓健 5 years ago
parent
commit
c277b3caba
  1. 2
      controllers/common/wechat_oauth.go
  2. 1
      controllers/pc/lottery_draw.go
  3. 2
      services/im/im.go

2
controllers/common/wechat_oauth.go

@ -73,7 +73,7 @@ var counter = new(atomic.Int64)
func (t *WeChatOauthCtl) CallbackOrder() {
counter.Add(1)
//搜索支付的order表, 查找到某条记录
order, err := pay_service.NotifyOrder(t.Request.OriginRequest.Body)
_, err := pay_service.NotifyOrder(t.Request.OriginRequest.Body)
if err != nil {
logger.Error(fmt.Sprintf("出现错误: %v", err))
return

1
controllers/pc/lottery_draw.go

@ -282,7 +282,6 @@ func (t *LotteryDrawCtl) Lottery() {
exist, err = models.GetById(rule, ruleId)
t.CheckErr(err)
t.Assert(exist, code.MSG_DATA_NOT_EXIST, "抽奖规则不存在")
//t.CheckRunning(rule.LotteryDrawStatus)
// 查询奖品
ladder := new(models.LotteryDrawRuleLadder)

2
services/im/im.go

@ -20,7 +20,7 @@ const NoticeShakeRedPackStart NoticeStatus = 259 // 通知摇红包开始了
const NoticeShakeRedPackEnd NoticeStatus = 260 // 通知摇红包结束了
const NoticeReward NoticeStatus = 261 // 打赏
const NoticeLotteryDrawStart = 262 // 抽奖开始
const NoticeLotteryDrawStop = 263 // 抽奖开始
const NoticeLotteryDrawStop = 263 // 抽奖结束
const NoticeLotteryDrawResult = 264 // 抽奖结果
func SendNoticeByActivityId(activityId int64, _type NoticeStatus, data map[string]interface{}, members ...string) error {

Loading…
Cancel
Save