fix some bugs

This commit is contained in:
2026-07-27 22:09:08 +03:30
parent 2aed828bac
commit 7c68115b39
8 changed files with 220 additions and 2 deletions
@@ -219,6 +219,21 @@ class RequestsController extends Controller
if (self::isSmsNotifEnabled('sms_notif_fund_withdraw_customer')) {
$this->send($customer->mobile, $customerMessage);
}
try {
$title = ($data['method'] ?? '') === 'gold' ? 'برداشت طلایی' : 'برداشت ریالی';
$body = ($data['method'] ?? '') === 'gold'
? 'گرم: ' . ($data['amount'] ?? '') . "\nمبلغ کل: " . number_format((float) ($data['total_price'] ?? 0)) . ' ریال'
: 'مبلغ: ' . number_format((float) ($data['amount'] ?? 0)) . ' ریال';
app(\App\Services\CustomerAppNotifyService::class)->notifyCustomer(
(int) $customer->id,
$title,
$body,
'info'
);
} catch (\Throwable $e) {
report($e);
}
}
}