catchAdmin/catch/wechat/model/WechatUsers.php
2020-06-21 10:48:55 +08:00

47 lines
1.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2020 http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------
namespace catchAdmin\wechat\model;
use catchAdmin\wechat\model\search\UserSearchTrait;
use catcher\base\CatchModel;
use catcher\traits\db\BaseOptionsTrait;
class WechatUsers extends CatchModel
{
use UserSearchTrait;
protected $name = 'wechat_users';
protected $field = [
'id', //
'nickname', // 用户名
'avatar', // 用户头像
'openid', // openid
'language', // 语言
'country', // 国家
'province', // 省份
'city', // 城市
'subscribe', // 用户状态 0 取消订阅 1 订阅
'block', // 拉黑状态 1 正常 2 拉黑
'subscribe_time', // 订阅时间
'subscribe_scene', // 订阅场景 ADD_SCENE_SEARCH 公众号搜索ADD_SCENE_ACCOUNT_MIGRATION 公众号迁移ADD_SCENE_PROFILE_CARD 名片分享ADD_SCENE_QR_CODE 扫描二维码ADD_SCENE_PROFILE_LINK 图文页内名称点击ADD_SCENE_PROFILE_ITEM 图文页右上角菜单ADD_SCENE_PAID 支付后关注ADD_SCENE_WECHAT_ADVERTISEMENT 微信广告ADD_SCENE_OTHERS 其他
'unionid', // 用户平台唯一身份认证
'sex', // 用户状态 1 男 2 女 0 未知
'remark', // 备注
'groupid', // 分组ID
'tagid_list', // 标签列表
'created_at', // 创建时间
'updated_at', // 更新时间
'deleted_at', // 删除状态0未删除 >0 已删除
];
}