Browse Source

wip:用户id

wangkaiyue 2 years ago
parent
commit
9443faafd4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/action.go

+ 1 - 1
services/action.go

@@ -23,7 +23,7 @@ func (this *LeadGeneration) GetDate() {
 	userId := qutil.ObjToString(this.GetSession("userId"))
 	rData, errMsg := func() (interface{}, error) {
 		//根据判断用户是否是7天内注册的新用户
-		isNewUser := mongodb.StringTOBsonId("userId").Timestamp().After(time.Now().AddDate(0, 0, -7))
+		isNewUser := mongodb.StringTOBsonId(userId).Timestamp().After(time.Now().AddDate(0, 0, -7))
 		keyWords := this.GetString("keyWords")
 		t, _ := this.GetInt("dType")
 		rData := map[string]interface{}{}