ソースを参照

Merge branch 'master' of https://app.yhyue.com/moapp/jy_docs

xuzhiheng 4 年 前
コミット
b4fe40444b
2 ファイル変更4 行追加0 行削除
  1. 3 0
      docs/es_jydoc.md
  2. 1 0
      timetask/main.go

+ 3 - 0
docs/es_jydoc.md

@@ -75,6 +75,9 @@ curl -XPUT http://localhost:9200/jydoc_v1 -u elastic:elastic -H 'Content-Type:ap
 			},
 			"docFileType": {
 				"type": "long"
+			},
+			"previewImgId": {
+				"type": "keyword"
 			}
 		}
 	},

+ 1 - 0
timetask/main.go

@@ -70,6 +70,7 @@ func main() {
 
 //
 func run() {
+	defer common.Catch()
 	now := date.NowFormat(date.Date_Full_Layout)
 	log.Println("start update to es", TimeTask.Time, now)
 	rows, err := Mysql.Raw(`select docId,downTimes,viewTimes from doc_statistics where updateDate>=? and updateDate<?`, TimeTask.Time, now).Rows()