调整 优化代码细节

This commit is contained in:
Little Write
2025-09-27 18:04:48 +08:00
parent 01925858ec
commit 95cb7fc862
4 changed files with 102 additions and 102 deletions

View File

@@ -98,7 +98,7 @@ func Recharge(referenceId string, customerId string) (err error) {
return nil
}
func RechargeCreem(referenceId string, customerEmail string) (err error) {
func RechargeCreem(referenceId string, customerEmail string, customerName string) (err error) {
if referenceId == "" {
return errors.New("未提供支付单号")
}
@@ -148,7 +148,6 @@ func RechargeCreem(referenceId string, customerEmail string) (err error) {
// 如果用户邮箱为空,则更新为支付时使用的邮箱
if user.Email == "" {
updateFields["email"] = customerEmail
// 避免输出敏感信息到stdout
}
}