瀏覽代碼

wip:采购单位问题处理

wangkaiyue 2 年之前
父節點
當前提交
abc4222af9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      internal/model/question.go

+ 1 - 1
internal/model/question.go

@@ -107,7 +107,7 @@ func getInfo(infoId string) (hasWinner, hasBuyer bool, infoTypes string) {
 	}
 	}
 	if res != nil && len(*res) > 0 {
 	if res != nil && len(*res) > 0 {
 		hasWinner = (*res)["winner"] != nil
 		hasWinner = (*res)["winner"] != nil
-		hasBuyer = (*res)["winner"] != nil
+		hasBuyer = (*res)["buyer"] != nil
 		infoTypes = gconv.String((*res)["toptype"])
 		infoTypes = gconv.String((*res)["toptype"])
 	}
 	}
 	return
 	return