1
0
forked from erp-dev/erp

feat: added pgadmin container

This commit is contained in:
2025-11-19 14:08:05 +08:00
parent 400c0db6db
commit ad0b6a84d2
7 changed files with 1263 additions and 0 deletions

30
verify_file_upload_fix.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
# PlateOrder 文件上传修复验证脚本
echo "================================================"
echo "PlateOrder 文件上传功能验证"
echo "================================================"
echo ""
echo "1⃣ 运行文件上传测试..."
python manage.py test api_v1.views.printing.test_plate_order_file_upload --keepdb -v 1
echo ""
echo "2⃣ 运行完整的 PlateOrder API 测试..."
python manage.py test api_v1.views.printing.test_plate_order_api --keepdb -v 1
echo ""
echo "================================================"
echo "✅ 如果所有测试通过,说明修复成功!"
echo "================================================"
echo ""
echo "📝 修复内容:"
echo " - 添加了 MultiPartParser, FormParser, JSONParser"
echo " - PlateOrderViewSet 现在支持文件上传"
echo " - 支持 multipart/form-data 和 application/json"
echo ""
echo "📖 详细文档:"
echo " - docs/FIX_FILE_UPLOAD_401.md"
echo " - docs/TROUBLESHOOT_401_PATCH.md"
echo ""