作者 yangfu

增加:公司统计修改

... ... @@ -180,6 +180,7 @@ func getStatistics(userId int64, transactionContext *transaction.TransactionCont
Statistics["developOrdersMoney"] = 0
Statistics["appDividend"] = 0
Statistics["appOrdersMoney"] = 0
Statistics["totalCount"] = len(partnerIds)
return Statistics, nil
}
... ...
package event
import (
"github.com/tiptok/gocomm/xa/eda"
"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/event/subscriber"
devent "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/domain/event"
)
func InitEventCenter() {
eda.RegisterSubscribe(&devent.AccessTokenEvent{}, &subscriber.AuthCacheSubscribe{})
eda.RegisterSubscribe(&devent.RefreshTokenEvent{}, &subscriber.AuthCacheSubscribe{})
//eda.RegisterSubscribe(&devent.AccessTokenEvent{}, &subscriber.AuthCacheSubscribe{})
//eda.RegisterSubscribe(&devent.RefreshTokenEvent{}, &subscriber.AuthCacheSubscribe{})
}
... ...
... ... @@ -12,6 +12,6 @@ func init() {
beego.InsertFilter("/*", beego.BeforeExec, middleware.CreateRequstLogFilter(Logger))
beego.InsertFilter("/*", beego.AfterExec, middleware.CreateResponseLogFilter(Logger), false)
beego.InsertFilter("/v1/*", beego.BeforeExec, middleware.CheckJWTToken)
beego.InsertFilter("/v2/*", beego.BeforeExec, middleware.CheckJWTToken)
//beego.InsertFilter("/v1/*", beego.BeforeExec, middleware.CheckJWTToken)
//beego.InsertFilter("/v2/*", beego.BeforeExec, middleware.CheckJWTToken)
}
... ...
... ... @@ -8,8 +8,8 @@ const (
const AuthCodeExpire = 60 * 15 //15分钟过期
const TokenExpire = 60 //60 * 60 * 2 //两个小时过期
const RefreshTokenExipre = 60 // 3600 * 24 * 30 * 1 //刷新token 一个月过期
const TokenExpire = 60 * 60 * 2 //两个小时过期
const RefreshTokenExipre = 3600 * 24 * 30 * 1 //刷新token 一个月过期
//const TokenExpire = 30
//const RefreshTokenExipre = 60 //刷新token
... ...