-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMessage.php
More file actions
35 lines (28 loc) · 943 Bytes
/
Message.php
File metadata and controls
35 lines (28 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
namespace App\Models;
use Jenssegers\Mongodb\Eloquent\Model;
class Message extends Model
{
const TYPE_MAIL = 'MAIL';
const TYPE_SMS = 'SMS';
const TYPE_VOIP = 'VOIP';
const TYPE_IM = 'IM';
const TYPE_WECHAT = 'WECHAT';
const TYPE_WEIBO = 'WEIBO';
const TYPE_LISTENER = 'LISTENER';
const TYPE_NOTE = 'NOTE';
const TYPE_SYSTEM = 'SYSTEM';
const TYPE_LM = 'LM';
const TYPE_NOTIFICATION = 'NOTIFICATION';
const DIRECTION_SEND = 'SEND';
const DIRECTION_RECEIVE = 'RECEIVE';
// 电话消息存入阵列 待录音完成后发送
const VOICE_MESSAGE_REDIS_KEY = 'voice_message_queues';
protected $connection = 'message';
protected $table = 'message';
protected $fillable = ['type', 'from', 'to', 'body', 'peer', 'direction', 'created_at', 'updated_at', 'package'];
public $timestamps = false;
public static function typeToText($type)
{
}
}