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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user