caipin %!s(int64=4) %!d(string=hai) anos
pai
achega
dfd3362344
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      web/api/contract_api.go

+ 2 - 1
web/api/contract_api.go

@@ -503,7 +503,8 @@ func (c *ContractApi) PostUnlock() {
 	}
 	// 1.项目节信息
 	sectionDetail := c.ServiceContract.Get(treeId, bidsectionId, projectIdInt, 0)
-	c.Ctx.JSON(iris.Map{"code": 0, "msg": "解锁成功", "section": sectionDetail})
+	contractDetail := c.ServiceContract.GetContract(id)
+	c.Ctx.JSON(iris.Map{"code": 0, "msg": "解锁成功", "section": sectionDetail, "contract": contractDetail})
 }
 
 // @Summary 合同概述