MCPcopy Index your code
hub / github.com/TruthHun/DocHub / LogRecord

Method LogRecord

models/CoinLogModel.go:29–33  ·  view source on GitHub ↗

记录金币记录变更情况,会自动对用户的金币做变更 @param log 日志对象 @return err 错误,nil表示true,否则表示false

(log CoinLog)

Source from the content-addressed store, hash-verified

27//@param log 日志对象
28//@return err 错误,nil表示true,否则表示false
29func (this *CoinLog) LogRecord(log CoinLog) (err error) {
30 log.TimeCreate = int(time.Now().Unix())
31 _, err = orm.NewOrm().Insert(&log)
32 return
33}

Callers 2

SignMethod · 0.80
GetMethod · 0.80

Calls 1

InsertMethod · 0.80

Tested by

no test coverage detected