feat: 切换 schema dump 基线并增强返点结算与管理校验

This commit is contained in:
2026-06-08 17:41:41 +08:00
parent 2d32f006c5
commit 8d5d7f5b17
130 changed files with 5746 additions and 6723 deletions

View File

@@ -18,22 +18,10 @@ test('public settings requires allowed group', function (): void {
$this->getJson('/api/v1/settings?group=wallet')
->assertStatus(400)
->assertJsonPath('code', ErrorCode::ClientHttpError->value);
});
test('public settings returns currency group', function (): void {
\App\Models\LotterySetting::query()->updateOrCreate(
['setting_key' => 'currency.display_decimals'],
[
'group_name' => 'currency',
'value_json' => 3,
'description_zh' => '展示小数位',
],
);
$this->getJson('/api/v1/settings?group=currency')
->assertOk()
->assertJsonPath('code', ErrorCode::Success->value)
->assertJsonFragment(['key' => 'currency.display_decimals', 'value' => 3]);
->assertStatus(400)
->assertJsonPath('code', ErrorCode::ClientHttpError->value);
});
test('public settings returns frontend group only', function (): void {