|
@@ -78,7 +78,7 @@ class NoticeController extends AdminController
|
|
$form->display('created_at');
|
|
$form->display('created_at');
|
|
$form->display('updated_at');
|
|
$form->display('updated_at');
|
|
$form->saved(function ($res){
|
|
$form->saved(function ($res){
|
|
- // dd($res->content);
|
|
|
|
|
|
+ dd($res);
|
|
//推送消息
|
|
//推送消息
|
|
JPushService::pushNotify([
|
|
JPushService::pushNotify([
|
|
//标题
|
|
//标题
|
|
@@ -94,6 +94,10 @@ class NoticeController extends AdminController
|
|
//推送类型
|
|
//推送类型
|
|
'type' => JPushService::PUSH_TYPE_ALL,
|
|
'type' => JPushService::PUSH_TYPE_ALL,
|
|
]);
|
|
]);
|
|
|
|
+
|
|
|
|
+ //给用户添加消息记录
|
|
|
|
+ User::query()->get(['id']);
|
|
|
|
+
|
|
});
|
|
});
|
|
});
|
|
});
|
|
}
|
|
}
|