Browse Source

wip:用户id

wangkaiyue 2 năm trước cách đây
mục cha
commit
9443faafd4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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{}{}