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:
2026-09-05 17:01:39 +03:30
co-authored by Cursor
parent 1c7ea16300
commit 8cee34bfba
13 changed files with 344 additions and 58 deletions
@@ -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,