更新小程序API基础地址,启用新的生产环境URL并修复配置文件中的URL检查设置。同时,优化环境变量说明,确保配置更清晰易懂。调整提现确认接口的逻辑,仅返回审核通过的收款记录,提升用户体验和系统稳定性。
This commit is contained in:
@@ -270,8 +270,8 @@ func WithdrawConfirmInfo(c *gin.Context) {
|
||||
})
|
||||
}
|
||||
|
||||
// WithdrawPendingConfirm GET /api/withdraw/pending-confirm?userId= 待确认/处理中收款列表
|
||||
// 返回 pending、processing、pending_confirm 的提现,供小程序展示;并返回 mchId、appId 供确认收款用
|
||||
// WithdrawPendingConfirm GET /api/withdraw/pending-confirm?userId= 待确认收款列表(仅审核通过后)
|
||||
// 只返回 processing、pending_confirm,供「我的」页「待确认收款」展示;pending 为待审核,不在此列表
|
||||
func WithdrawPendingConfirm(c *gin.Context) {
|
||||
userId := c.Query("userId")
|
||||
if userId == "" {
|
||||
@@ -280,8 +280,8 @@ func WithdrawPendingConfirm(c *gin.Context) {
|
||||
}
|
||||
db := database.DB()
|
||||
var list []model.Withdrawal
|
||||
// 进行中的提现:待处理、处理中、待确认收款(与 next 的 pending_confirm 兼容)
|
||||
if err := db.Where("user_id = ? AND status IN ?", userId, []string{"pending", "processing", "pending_confirm"}).
|
||||
// 仅审核已通过、等待用户确认收款的:processing(微信处理中)、pending_confirm(待用户点确认收款)
|
||||
if err := db.Where("user_id = ? AND status IN ?", userId, []string{"processing", "pending_confirm"}).
|
||||
Order("created_at DESC").
|
||||
Find(&list).Error; err != nil {
|
||||
list = nil
|
||||
|
||||
Reference in New Issue
Block a user