消息推送

This commit is contained in:
mzl
2025-08-20 18:12:07 +08:00
parent 78e28a99dc
commit 9f96b8d625
13 changed files with 451 additions and 41 deletions
+10 -20
View File
@@ -77,25 +77,25 @@ class IndexController
$options = [
'controller' => [
'module' => 'common',
'name' => 'resources'
'name' => 'message_notifications'
],
'model' => [
'module' => 'common',
'name' => 'resources'
'name' => 'message_notifications'
],
'service' => [
'module' => 'common',
'name' => 'resources'
'name' => 'message_notifications'
],
'logic' => [
'module' => 'common',
'name' => 'resources'
'name' => 'message_notifications'
],
'validate' => [
'module' => 'common',
'name' => 'resources'
'name' => 'message_notifications'
],
'table' => 'resources'
'table' => 'message_notifications'
];
$result = (new Generate($options))->doGenerate();
@@ -106,21 +106,11 @@ class IndexController
public function test()
{
// $data = [
// 'code' => 'GD20250703-1DC80',
// 'category' => '账号类问题',
// 'content' => '这是一条测试工单内容。'
// ];
// \app\common\utils\email\MailSend::send('mzl@hnxinyouhe.com', '【XYH】新的工单提醒', replaceTpl($data, 'work_order'));
$service = new \app\common\service\MessageNotificationsService();
$udis = $service->getAllUserIds();
// $options = [
// 'corp_id' => 3,
// 'user_id' => 666
// ];
// \Webman\RedisQueue\Redis::send('perm-agt', $options);
var_dump($udis);
$res = Cache::delete("user_resources_74_fdesk");
return 22;
return json($udis);
}
}