修改余量创建

This commit is contained in:
lzh 2025-10-20 14:21:31 +08:00
parent 4897fbe098
commit f8c5105580

View File

@ -376,7 +376,7 @@ func ExtendBundleBalanceByUserId(data model.BundleBalanceExtendPo) error {
}
func CreateBundleBalance(data model.BundleBalance) error {
return app.ModuleClients.BundleDB.Create(&data).Error
return app.ModuleClients.BundleDB.Save(&data).Error
}
func GetUsedRecord(req *bundle.GetUsedRecordListReq) (data []model.CostLogPo, total int64, err error) {