删除不再使用的文件,包括开放 API 鉴权规范文档、数据库迁移脚本和旧版图标组件,优化项目结构和资源管理。更新小程序代码以支持代付功能,增加代付分享弹窗和支付逻辑,提升用户体验。

This commit is contained in:
Alex-larget
2026-03-18 20:33:50 +08:00
parent 0f3933fabd
commit d6cdd6fdba
57 changed files with 1672 additions and 2761 deletions

View File

@@ -360,7 +360,7 @@ func GiftPayDetail(c *gin.Context) {
return
}
if gpr.Status != "pending" && gpr.Status != "pending_pay" && gpr.Status != "paid" {
if gpr.Status != "pending" && gpr.Status != "pending_pay" && gpr.Status != "paid" && gpr.Status != "refunded" {
c.JSON(http.StatusOK, gin.H{"success": false, "error": "该代付已处理"})
return
}
@@ -431,6 +431,8 @@ func GiftPayDetail(c *gin.Context) {
action = "pay"
} else if gpr.Status == "paid" {
action = "share"
} else if gpr.Status == "refunded" {
action = "refunded"
} else if gpr.Status == "pending" {
action = "share" // 旧版:待好友付
}
@@ -449,6 +451,8 @@ func GiftPayDetail(c *gin.Context) {
} else {
action = "redeem"
}
} else if gpr.Status == "refunded" {
action = "refunded"
}
}