feat: landing settings, instant withdraw deduct, and OTP site URL
Add has_landing plus landing_* deploy keys, deduct balance on withdraw request, keep app_url for SMS login links, and clarify Zarin rial wallet document titles. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -275,6 +275,9 @@ class WalletController extends Controller
|
||||
try {
|
||||
$data['direction'] = $deposit ? 0 : 1;
|
||||
$data['withdraw_id'] = $Withdraw->id;
|
||||
if (!$deposit && trim((string) ($data['note'] ?? '')) === '') {
|
||||
$data['note'] = 'برداشت وجه';
|
||||
}
|
||||
app(\App\Http\Controllers\Admin\ZarinController::class)->wallet($data);
|
||||
} catch (\Exception $e) {
|
||||
report($e);
|
||||
@@ -1446,6 +1449,10 @@ class WalletController extends Controller
|
||||
|
||||
$withdraw = Withdraw::findOrFail($request->id);
|
||||
$withdraw->update($data);
|
||||
|
||||
if ($withdraw->customer) {
|
||||
$this->broadcastCustomerWalletAssets($withdraw->customer);
|
||||
}
|
||||
// $tahesab = new TahesabController();
|
||||
// $tahesab->wallet([
|
||||
// 'customer_id' => $withdraw->customer_id,
|
||||
|
||||
Reference in New Issue
Block a user