소스 검색

返回值处理

WH01243 11 달 전
부모
커밋
7614650df3
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      service/clue.go

+ 2 - 0
service/clue.go

@@ -1242,6 +1242,8 @@ func FindClueInfo(in *biservice.FindClueInfoReq) (map[string]interface{}, int64)
 		data["uid"] = gconv.String((*clueData)["uid"])
 		data["userid"] = gconv.String((*clueData)["userid"])
 		data["clue_position_id"] = gconv.Int64((*clueData)["position_id"])
+	} else {
+		return data, 1
 	}
 	return data, 0
 }