增加 快速获取 WeCom Key 的方法

This commit is contained in:
iVampireSP.com 2023-03-01 22:28:58 +08:00
parent cbb6eff6b3
commit 3f03d13d2f
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -145,4 +145,9 @@ public function routeNotificationForMail(): array
return [$user->email => $user->name];
}
public function getWecomKeyAttribute(): string
{
return $this->module?->wecom_key ?? config('settings.wecom.robot_hook.default');
}
}