caipin hace 4 años
padre
commit
b3b3860366
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      services/project_account_service.go
  2. 1 1
      web/api/project_setting_auth_api.go

+ 1 - 1
services/project_account_service.go

@@ -208,7 +208,7 @@ func (s *projectAccountService) GetBidAccount(bidsectionId int, projectId int, p
 	// 管理员账号-可能不必要
 	// idList = append(idList, strconv.Itoa(projectAccountId))
 	for _, item := range bidAccountData {
-		idList = append(idList, strconv.Itoa(item.BidsectionId))
+		idList = append(idList, strconv.Itoa(item.AccountId))
 	}
 	inId := strings.Join(idList, ",")
 

+ 1 - 1
web/api/project_setting_auth_api.go

@@ -54,7 +54,7 @@ func (c *ProjectSettingApi) GetBidAccount() {
 	// 获得项目账号ID
 	projectAccountIdInt, err := utils.GetProjectAccountId(c.Ctx)
 	if err != nil {
-		c.Ctx.JSON(iris.Map{"code": -1, "msg": err})
+		c.Ctx.JSON(iris.Map{"code": -1, "msg": fmt.Sprintf("%s", err)})
 		return
 	}