go-common/app/job/main/creative/dao/weeklyhonor/infoc.go

22 lines
458 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package weeklyhonor
import (
"context"
"go-common/library/log"
"time"
)
// HonorInfoc log honor msg send status
func (d *Dao) HonorInfoc(c context.Context, mid int64, success int32) (err error) {
ctime := time.Now().Format("20060102 15:04:05")
i := map[string]interface{}{
"mid": mid,
"ctime": ctime,
"exc": "",
"success": success,
}
log.Warn("infocproc create infoc(%v)", i)
err = d.infoc.Info(mid, ctime, "", success)
return
}