fix some bugs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user