fix: subject field mapping 文科/理科→历史类/物理类 for /api/prob

This commit is contained in:
2026-06-18 18:54:08 +08:00
parent 102be47e99
commit 465370c2e2
3 changed files with 52 additions and 0 deletions
+3
View File
@@ -333,6 +333,9 @@ def prob_calc():
body = request.get_json() or {}
score = int(body.get('score', 0))
subject = body.get('subject', '物理类')
# 表单科目映射到数据库yiyi表科目
subject_map = {'文科': '历史类', '理科': '物理类'}
subject = subject_map.get(subject, subject)
major = body.get('major', '不限')
region = body.get('region', '不限')
+6
View File
@@ -0,0 +1,6 @@
User-agent: *
Allow: /
Disallow: /api/
Disallow: /gaokao_henan.db
Sitemap: http://192.144.179.11/sitemap.xml
+43
View File
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://192.144.179.11/</loc>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://192.144.179.11/ai-chat</loc>
<changefreq>weekly</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>http://192.144.179.11/ai-tool.html</loc>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>http://192.144.179.11/plan.html</loc>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>http://192.144.179.11/school.html</loc>
<changefreq>monthly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>http://192.144.179.11/major.html</loc>
<changefreq>monthly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>http://192.144.179.11/qa.html</loc>
<changefreq>monthly</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>http://192.144.179.11/diag.html</loc>
<changefreq>monthly</changefreq>
<priority>0.6</priority>
</url>
</urlset>