正在显示
4 个修改的文件
包含
7 行增加
和
12 行删除
@@ -180,6 +180,7 @@ func getStatistics(userId int64, transactionContext *transaction.TransactionCont | @@ -180,6 +180,7 @@ func getStatistics(userId int64, transactionContext *transaction.TransactionCont | ||
180 | Statistics["developOrdersMoney"] = 0 | 180 | Statistics["developOrdersMoney"] = 0 |
181 | Statistics["appDividend"] = 0 | 181 | Statistics["appDividend"] = 0 |
182 | Statistics["appOrdersMoney"] = 0 | 182 | Statistics["appOrdersMoney"] = 0 |
183 | + Statistics["totalCount"] = len(partnerIds) | ||
183 | return Statistics, nil | 184 | return Statistics, nil |
184 | } | 185 | } |
185 | 186 |
1 | package event | 1 | package event |
2 | 2 | ||
3 | -import ( | ||
4 | - "github.com/tiptok/gocomm/xa/eda" | ||
5 | - "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/event/subscriber" | ||
6 | - devent "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/domain/event" | ||
7 | -) | ||
8 | - | ||
9 | func InitEventCenter() { | 3 | func InitEventCenter() { |
10 | - eda.RegisterSubscribe(&devent.AccessTokenEvent{}, &subscriber.AuthCacheSubscribe{}) | ||
11 | - eda.RegisterSubscribe(&devent.RefreshTokenEvent{}, &subscriber.AuthCacheSubscribe{}) | 4 | + //eda.RegisterSubscribe(&devent.AccessTokenEvent{}, &subscriber.AuthCacheSubscribe{}) |
5 | + //eda.RegisterSubscribe(&devent.RefreshTokenEvent{}, &subscriber.AuthCacheSubscribe{}) | ||
12 | } | 6 | } |
@@ -12,6 +12,6 @@ func init() { | @@ -12,6 +12,6 @@ func init() { | ||
12 | beego.InsertFilter("/*", beego.BeforeExec, middleware.CreateRequstLogFilter(Logger)) | 12 | beego.InsertFilter("/*", beego.BeforeExec, middleware.CreateRequstLogFilter(Logger)) |
13 | beego.InsertFilter("/*", beego.AfterExec, middleware.CreateResponseLogFilter(Logger), false) | 13 | beego.InsertFilter("/*", beego.AfterExec, middleware.CreateResponseLogFilter(Logger), false) |
14 | 14 | ||
15 | - beego.InsertFilter("/v1/*", beego.BeforeExec, middleware.CheckJWTToken) | ||
16 | - beego.InsertFilter("/v2/*", beego.BeforeExec, middleware.CheckJWTToken) | 15 | + //beego.InsertFilter("/v1/*", beego.BeforeExec, middleware.CheckJWTToken) |
16 | + //beego.InsertFilter("/v2/*", beego.BeforeExec, middleware.CheckJWTToken) | ||
17 | } | 17 | } |
@@ -8,8 +8,8 @@ const ( | @@ -8,8 +8,8 @@ const ( | ||
8 | 8 | ||
9 | const AuthCodeExpire = 60 * 15 //15分钟过期 | 9 | const AuthCodeExpire = 60 * 15 //15分钟过期 |
10 | 10 | ||
11 | -const TokenExpire = 60 //60 * 60 * 2 //两个小时过期 | ||
12 | -const RefreshTokenExipre = 60 // 3600 * 24 * 30 * 1 //刷新token 一个月过期 | 11 | +const TokenExpire = 60 * 60 * 2 //两个小时过期 |
12 | +const RefreshTokenExipre = 3600 * 24 * 30 * 1 //刷新token 一个月过期 | ||
13 | 13 | ||
14 | //const TokenExpire = 30 | 14 | //const TokenExpire = 30 |
15 | //const RefreshTokenExipre = 60 //刷新token | 15 | //const RefreshTokenExipre = 60 //刷新token |
-
请 注册 或 登录 后发表评论