增加 默认 key

This commit is contained in:
iVampireSP.com 2022-10-31 19:04:50 +08:00
parent 70fcf76d7e
commit 09726a4143
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -70,10 +70,11 @@ public function toGroup($notifiable)
$module->makeVisible(['wecom_key']);
if ($module->wecom_key == null) {
return;
$wecom_key = config('settings.wecom.robot_hook.default');
} else {
$wecom_key = $module->wecom_key;
}
$wecom_key = $module->wecom_key;
// 隐藏字段
$module->makeHidden(['wecom_key']);