删除不再使用的文件,包括开放 API 鉴权规范文档、数据库迁移脚本和旧版图标组件,优化项目结构和资源管理。更新小程序代码以支持代付功能,增加代付分享弹窗和支付逻辑,提升用户体验。
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user