This commit is contained in:
yan.y 2024-12-21 20:08:14 +08:00
parent 059191317c
commit d12f459f39
1 changed files with 5 additions and 0 deletions

View File

@ -94,6 +94,11 @@ func (p DefParty) orderCreatePreCheck() web_iris.Party {
orderCreatePreCheckResponse.PayType = 1
}
}
var systemConfigPay models.SystemConfig
database.Instance().Model(&models.SystemConfig{}).Where("config_type = 3").Order(clause.OrderByColumn{Column: clause.Column{Name: "sort"}, Desc: true}).Limit(1).Find(&systemConfigPay)
if systemConfigPay.Name == "payOff" {
orderCreatePreCheckResponse.PayType = 0
}
Success(ctx, orderCreateRequest, orderCreatePreCheckResponse)
})