xthk/offline-user
最新稳定版本:0.03
Composer 安装命令:
composer require xthk/offline-user
包简介
a
README 文档
README
a ucenter for offline sdk.
Installing
$ composer require ucenter/offline-user -vvv
Usage
TODO
- 追加配置文件 config/ucenter.php
<?php
return [
'config' => [
'domain' => env('USER_CENTER_HOST', ''), //请求的域名
'app_id' => env('UC_APP_ID', ''), //应用ID
'app_secret' => env('UC_APP_SECRET', ''), //应用秘钥
'source' => env('UC_SOURCE', ''), //来源
'app_name' => env('APP_NAME_USER_CENTER', '') //应用名称
],
'params' => [
'mobile' => 'phone',
'password' => 'password',
'password_confirmation' => 'password_confirmation',
'original_password' => 'original_password',
'sms_code' => 'sms_code',
'sms_type' => 'sms_type',
'register_ip' => 'register_ip',
'login_ip' => 'login_ip',
'push_id' => 'push_id',
'push_type' => 'push_type',
'open_id' => 'open_id',
'wechat_type' => 'wechat_type',
'status' => 'status',
'city_id' => 'city_id',
'real_name' => 'name',
'gender' => 'gender',
'birthday' => 'birthday',
'emergency_mobile' => 'emergency_phone',
'user_id' => 'uc_user_id',
'student_id' => 'uc_student_id'
],
'model' => [
'CityModel' => \App\Models\Base\CityModel::class,
'UserCenterLogModel' => \App\Models\Mongodb\UserCenterLogsModel::class,
'StudentModel' => \App\Models\Student\StudentModel::class,
],
//todo 暂时未使用异步方式
'nsq' => [
'topic' => '',
'student_update' => '',
]
];
- 同步调用
注入OfflineUser类,调用里面对应的方法
- 异步调用
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT
统计信息
- 总下载量: 4.66k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-29