47 lines
1.4 KiB
PHP
47 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace addons\webman\model;
|
|
|
|
use addons\webman\traits\HasDateTimeFormatter;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class PhoneSmsLog
|
|
* @property int id 主键
|
|
* @property int player_id 玩家id
|
|
* @property string phone 手机
|
|
* @property string code 验证码
|
|
* @property int type 验证码类型
|
|
* @property string expire_time 过期时间
|
|
* @property int status 状态
|
|
* @property int send_times 发送次数
|
|
* @property string uid 编码
|
|
* @property string response 返回消息
|
|
* @property string created_at 创建时间
|
|
* @property string updated_at 最后一次修改时间
|
|
*
|
|
* @package app\model
|
|
*/
|
|
class PhoneSmsLog extends Model
|
|
{
|
|
use HasDateTimeFormatter;
|
|
|
|
CONST TYPE_LOGIN = 1; // 登录
|
|
CONST TYPE_REGISTER = 2; // 注册
|
|
CONST TYPE_CHANGE_PASSWORD = 3; // 修改密码
|
|
CONST TYPE_CHANGE_PAY_PASSWORD = 4; // 修改支付密码
|
|
CONST TYPE_CHANGE_PHONE = 5; // 修改手机号
|
|
CONST TYPE_BIND_NEW_PHONE = 6; // 绑定新手机号
|
|
CONST TYPE_TALK_BIND = 7; // QTalk绑定账号
|
|
|
|
CONST COUNTRY_CODE_JP = 81; // 日本
|
|
CONST COUNTRY_CODE_TW = 886; // 中国台湾
|
|
CONST COUNTRY_CODE_CH = 86; // 中国大陆
|
|
CONST COUNTRY_CODE_MY = 60; // 马来西亚
|
|
public function __construct(array $attributes = [])
|
|
{
|
|
parent::__construct($attributes);
|
|
$this->setTable(plugin()->webman->config('database.phone_sms_log_table'));
|
|
}
|
|
}
|