陈少旭 4 months ago
parent
commit
3c89c015f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/custom_service.go

+ 1 - 1
service/custom_service.go View File

60
 }
60
 }
61
 
61
 
62
 func UpdateCustom(custom models.KyyChargeCustom) (err error) {
62
 func UpdateCustom(custom models.KyyChargeCustom) (err error) {
63
-	err = ChargeWriteDB().Save(custom).Error
63
+	err = ChargeWriteDB().Save(&custom).Error
64
 	return
64
 	return
65
 }
65
 }
66
 
66