规范气站与配送点提现渠道

This commit is contained in:
czl231
2026-08-19 23:43:02 +08:00
parent 2f5b934037
commit b93202274d
13 changed files with 148 additions and 12 deletions

View File

@@ -133,7 +133,8 @@ func CreateWalletApplyCash(ctx *gin.Context) {
Remark string `json:"remark" binding:"max=2000"`
}
if err := ctx.ShouldBindJSON(&request); err != nil || request.Amount <= 0 ||
strings.TrimSpace(request.RequestNo) == "" {
strings.TrimSpace(request.RequestNo) == "" ||
!common.IsSupportedOrganizationWithdrawalChannel(request.Channel) {
infra.Response.Error(ctx, errcode.ErrInvalidArgument)
return
}