feat(admin-frontend): 完成订阅与系统管理真实工作台
补齐订单、优惠券、主题、插件、公告与支付管理页面, 接入对应后台接口、路由入口与工具层类型定义。 同时修复套餐页开关初始化误写问题,避免浏览即触发写操作。 在订阅协议侧为 Stash 导出增加 AnyTLS 版本守卫, 未知版本或低于 3.3.0 时不再导出该协议,并补充回归测试与知识记录。
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit\Protocols;
|
||||
|
||||
use App\Protocols\Stash;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class StashAnyTlsCompatibilityTest extends TestCase
|
||||
{
|
||||
public function test_anytls_requires_a_known_supported_stash_version(): void
|
||||
{
|
||||
$this->assertFalse(Stash::supportsAnyTlsVersion(null));
|
||||
$this->assertFalse(Stash::supportsAnyTlsVersion(''));
|
||||
$this->assertFalse(Stash::supportsAnyTlsVersion('3.2.9'));
|
||||
|
||||
$this->assertTrue(Stash::supportsAnyTlsVersion('3.3.0'));
|
||||
$this->assertTrue(Stash::supportsAnyTlsVersion('3.3.1'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user