Sync thank card sending logic and validation with specifications

This commit is contained in:
antv
2026-07-15 22:32:24 +07:00
parent 7f059dce86
commit 53fa37d599
2 changed files with 23 additions and 1 deletions
+4
View File
@@ -85,6 +85,10 @@ class UserService implements UserServiceInterface
]);
$sender->card -= $amount;
if ($sender->card <= 0) {
$sender->card = 0;
$sender->flag_send = config('constants.FLAG_SEND_DISABLED');
}
$sender->save();
});
}