feat: 根目录文档、脚本、gitignore
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""9130 AI指标提交——一次性调用,目标 8085(161 zentao_dev_2026)。不改 submit_assessment.py。"""
|
||||
import io, sys, json, requests
|
||||
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
||||
url = "http://localhost:8085/zentao/zt-story-expand/saveOrUpdate"
|
||||
payload = {
|
||||
"storyId": 9130,
|
||||
"numberUnits": 3,
|
||||
"unitBusinessComplexity": "2.2",
|
||||
"technicalComplexityCoefficient": "1.4",
|
||||
"aiEfficiencyCoefficient": "0.55",
|
||||
"requirementStatus": "inProgress",
|
||||
"workloadIndex": "5.1",
|
||||
"productPerson": "魏冬霞",
|
||||
"developPerson": "罗勇",
|
||||
}
|
||||
resp = requests.post(url, json=payload, headers={"Content-Type": "application/json"}, timeout=30)
|
||||
data = resp.json()
|
||||
msg = data.get("message", "")
|
||||
try: msg = msg.encode("latin-1").decode("utf-8")
|
||||
except Exception: pass
|
||||
print(f"HTTP {resp.status_code} | code={data.get('code')} | message={msg}")
|
||||
Reference in New Issue
Block a user