增加 快速获取 WeCom Key 的方法
This commit is contained in:
parent
cbb6eff6b3
commit
3f03d13d2f
@ -145,4 +145,9 @@ public function routeNotificationForMail(): array
|
|||||||
|
|
||||||
return [$user->email => $user->name];
|
return [$user->email => $user->name];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getWecomKeyAttribute(): string
|
||||||
|
{
|
||||||
|
return $this->module?->wecom_key ?? config('settings.wecom.robot_hook.default');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user