fix:优化auth权限,登录逻辑获取信息

This commit is contained in:
Ying
2022-12-02 11:16:57 +08:00
parent 66c75fb6b4
commit 1cba17c91c
31 changed files with 668 additions and 811 deletions

41
app/queue/redis/Works.php Normal file
View File

@@ -0,0 +1,41 @@
<?php
namespace app\queue\redis;
use Webman\RedisQueue\Consumer;
/**
* 消费任务
* @package app\queue\redis
* @author meystack
* @date 2022-11-20
*/
class Works implements Consumer
{
/**
* 消费队列名称
* @var string
*/
public string $queue = 'send-mail';
/**
* REDIS连接名称
* @param $data
* @return bool
*/
public string $connection = 'default';
/**
* 默认消费函数
* @param $data
* @return bool
*/
public function consume($data): bool
{
/**
* 无需反序列化
* 请在此编写您的消费逻辑
*/
var_dump($data);
return true;
}
}