Git Product home page Git Product logo

message_system's People

Contributors

johnnylei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

message_system's Issues

当我发送一个消息时,出现了一个错误 invalid user information

这是我的 components configure
'messageManager'=>[
'class'=>'johnnylei\message_system\MessageManager',
// userInformation 是一个用户表的activeRecord,主要作用当你发送消息的时候,将用户表里面的消息总数+1,当你阅读完消息的时候,将用户表里面的消息数-1,
// 通过实现UserInformationInterface,里面的两个方法
'userInformation'=>[
'class'=>'common\models\User',
]
],

是还要在用户表添加消息数的字段么 ?字段名是什么?麻烦帮助一下,谢谢

几处问题

$subscription->subscription($userId, $queueId); 说明里的 user 和 queque位置反了。

例子里面的send的用法

Yii::$app->messageManager->send([
                'title'=> 'this is title',
                'body'=> 'this is body',
                'type'=>'this is message type',
                'show_style'=>'this is show style',
            ], $queue_id);

是不是应该写成

$sender = new messageManager;
        $sender->send([
                'title'=> 'this is title',
                'body'=> 'this is body',
                'type'=>'system',
                //'show_style'=>'',
                'queue_id' => $queue_id
            ], $queue_id); 

而且第二个参数queue是干什么用的,貌似没用上?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.