WH01243 1 年之前
父節點
當前提交
7290dbf67b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      service/sqlService.go

+ 1 - 1
service/sqlService.go

@@ -38,7 +38,7 @@ func (l SqlService) SqlManage(in *biservice.SqlManageReq) []byte {
 		count, rs = elastic.GetWithCount(common.InterfaceToStr((*sqlData)["db_name"]), common.InterfaceToStr((*sqlData)["db_name"]), "", Sqlformat(common.InterfaceToStr((*sqlData)["content"]), *in))
 	}
 	for k, v := range *rs {
-		(*rs)[k]["id"] = encrypt.EncodeArticleId2ByCheck(common.InterfaceToStr(v["id"]))
+		(*rs)[k]["id"] = encrypt.EncodeArticleId2ByCheck(common.InterfaceToStr(v["_id"]))
 		delete((*rs)[k], "_id")
 	}
 	result := map[string]interface{}{