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
+10
View File
@@ -60,6 +60,16 @@ class ConfigServiceOtpHostTest extends TestCase
$this->assertSame('https://my.goldarvin.ir', $cfg->resolvePublicSiteUrl($request));
}
public function test_does_not_fall_back_to_laravel_api_host(): void
{
config(['app.url' => 'https://goldarvin.gholaktala.ir/server']);
$request = Request::create('https://goldarvin.gholaktala.ir/server/admin/customer', 'POST');
$this->app->instance('request', $request);
$this->assertSame('', $this->cfgWithAppUrl(null)->resolvePublicSiteUrl($request));
$this->assertSame('', $this->cfgWithAppUrl(null)->resolvePublicHost($request));
}
public function test_app_url_without_scheme_gets_https(): void
{
$request = Request::create('https://goldarvin.gholaktala.ir/server/auth/login', 'POST');