first commit
This commit is contained in:
20
金壶/ydyd_service/application/common/tools/MessageNotice.php
Normal file
20
金壶/ydyd_service/application/common/tools/MessageNotice.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\tools;
|
||||
|
||||
use app\facade\RedisCache;
|
||||
|
||||
class MessageNotice
|
||||
{
|
||||
/**
|
||||
* 构造函数
|
||||
*/
|
||||
function __construct() {
|
||||
//暂时没有需要初始化的数据
|
||||
}
|
||||
|
||||
//实际太少代码了,有没有必要这么写,值得思考下
|
||||
public function notice($data) {
|
||||
RedisCache::lpush('MESSAGE_QUEUE',json_encode($data));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user