特性:支持在后台配置结婚离婚冷静期规则,并优化冷却时间文本提示;修复全局的离婚公告事件对象接收名称不匹配问题

This commit is contained in:
2026-03-01 18:15:37 +08:00
parent d7c6e0e7a8
commit 73c78ee6d7
3 changed files with 53 additions and 8 deletions

View File

@@ -0,0 +1,40 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
DB::table('sysparam')->insertOrIgnore([
[
'alias' => 'divorce_mutual_cooldown',
'guidetxt' => '协议离婚冷静期(天)',
'body' => '70'
],
[
'alias' => 'divorce_forced_cooldown',
'guidetxt' => '强制离婚冷静期(天)',
'body' => '70'
],
[
'alias' => 'divorce_auto_cooldown',
'guidetxt' => '系统强制离婚冷静期(天)',
'body' => '70'
],
]);
}
public function down(): void
{
DB::table('sysparam')->whereIn('alias', [
'divorce_mutual_cooldown',
'divorce_forced_cooldown',
'divorce_auto_cooldown'
])->delete();
}
};