作者 tangxvhui

修正一些错误

@@ -68,7 +68,7 @@ func (srv *MessagePersonalService) TodayMessageSummaryEvaluationSelf(param *comm @@ -68,7 +68,7 @@ func (srv *MessagePersonalService) TodayMessageSummaryEvaluationSelf(param *comm
68 cnt, _, err := messageRepo.Find(map[string]interface{}{ 68 cnt, _, err := messageRepo.Find(map[string]interface{}{
69 "types": domain.MessageTypesOther, 69 "types": domain.MessageTypesOther,
70 "targetUserId": param.UserId, 70 "targetUserId": param.UserId,
71 - "playload": string(payloadStr), 71 + "payload": string(payloadStr),
72 "limit": 1, 72 "limit": 1,
73 }) 73 })
74 if err != nil { 74 if err != nil {
@@ -9,8 +9,8 @@ import ( @@ -9,8 +9,8 @@ import (
9 func TestGenerateToken(t *testing.T) { 9 func TestGenerateToken(t *testing.T) {
10 ut := UserAuth{ 10 ut := UserAuth{
11 CompanyId: 8, 11 CompanyId: 8,
12 - UserId: 3422181461696000,  
13 - Phone: "13066667702", 12 + UserId: 3422052605249024,
  13 + Phone: "13677777777",
14 PlatformId: 29, 14 PlatformId: 29,
15 AdminType: 1, 15 AdminType: 1,
16 } 16 }
@@ -67,8 +67,8 @@ func (repo *MessagePersonalRepository) Find(param map[string]interface{}) (int, @@ -67,8 +67,8 @@ func (repo *MessagePersonalRepository) Find(param map[string]interface{}) (int,
67 if v, ok := param["types"]; ok { 67 if v, ok := param["types"]; ok {
68 query.Where("types=?", v) 68 query.Where("types=?", v)
69 } 69 }
70 - if v, ok := param["playload"]; ok {  
71 - query.Where("playload @>?", v) 70 + if v, ok := param["payload"]; ok {
  71 + query.Where("payload @>?", v)
72 } 72 }
73 query.Order("id desc") 73 query.Order("id desc")
74 count, err := query.SelectAndCount() 74 count, err := query.SelectAndCount()