mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update MichatService.php
This commit is contained in:
parent
9954e9da8a
commit
73540d3ada
@ -1,12 +1,28 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | ThinkAdmin
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | 官方网站: http://demo.thinkadmin.top
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | 开源协议 ( https://mit-license.org )
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace app\service\service;
|
namespace app\service\service;
|
||||||
|
|
||||||
|
|
||||||
use library\tools\Http;
|
use library\tools\Http;
|
||||||
use think\Exception;
|
use think\Exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小米消息服务
|
||||||
|
* Class MichatService
|
||||||
|
* @package app\service\service
|
||||||
|
*/
|
||||||
class MichatService
|
class MichatService
|
||||||
{
|
{
|
||||||
const URI = 'https://mimc.chat.xiaomi.net';
|
const URI = 'https://mimc.chat.xiaomi.net';
|
||||||
@ -19,7 +35,6 @@ class MichatService
|
|||||||
const BIZ_TYPE_AUDIO_FILE = 'AUDIO_FILE';
|
const BIZ_TYPE_AUDIO_FILE = 'AUDIO_FILE';
|
||||||
const MSG_TYPE_BASE64 = 'base64';
|
const MSG_TYPE_BASE64 = 'base64';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 给指定账号推送消息内容
|
* 给指定账号推送消息内容
|
||||||
* @param string $from 消息来源
|
* @param string $from 消息来源
|
||||||
|
Loading…
x
Reference in New Issue
Block a user