소스 검색

Merge branch 'dev_v1.0.10_wh' of BaseService/biService into feature/v1.0.10

王浩 1 년 전
부모
커밋
a766fb66a2
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{}{