12345678910111213141516171819202122232425262728 |
- <?php
- namespace Message\Lib;
- use Dever;
- class Manage
- {
- # 发送消息
- public function send($id, $name, $param)
- {
- $uid = Dever::param('uid', $param);
- $to_uid = Dever::param('to_uid', $param);
- $name = Dever::param('name', $param);
- $content = Dever::param('content', $param);
- $project_id = Dever::param('project_id', $param);
- $type = Dever::param('type', $param);
- $scope = Dever::param('scope', $param);
- if (!$uid) {
- $uid = -1;
- }
- if ($to_uid && $name && $content) {
- $push = 'push';
- $result = Dever::load('message/lib/data')->push($uid, $to_uid, $name, $content, $type, $project_id, $scope, $push, $id);
- }
- }
- }
|