当前位置:网站首页>The configuration manual for the secondary development of the XE training system of the missing moment document system
The configuration manual for the secondary development of the XE training system of the missing moment document system
2022-08-01 20:04:00 【Missing moment】
@Physician training management system configuration manual
前言
Open platform supports you willxiaoeThe store communicates with other platforms,So as to better operate users,支撑业务决策.This documentation is based onxiaoe云平台API的配置、调用、Operation manual for secondary development.
一、环境部署
Little Goose Cloud platform configuration
- 创建应用获取client_id、client_secretand authorized storesID;
- IP白名单配置;
在IP白名单内的IPaddress as the source,获取access_tokenThe interface can be called successfully.
服务器环境部署
首次配置服务器,会出现file_exists(),open_basedir restriction in effect错误提示.
解决方案:
- Pagoda to find the corresponding website,设置,The website directory will be protected against cross-site attacks(open_basedir)选项取消勾选即可;
- 删除根目录下的user.ini
二、Database dictionary configuration
po_admin 管理员系统
user_roles,//角色:0超管1单位管理2市管3区管4Provincial management;1.The jump page of the background home page;2.Action menu hide and show;
user_menu,//左侧菜单权限;
user_auth,//Whether the user can log in to the background;
获取用户user_id
/*获取用户user_id * $phone,string,手机号 * $page_size,number,页数 */
function getUser($phone, $page_size = "10")
{
require_once __DIR__ . '/libs/Client.php';
$client = new Client();
$url = "https://api.xiaoe-tech.com/xe.user.batch.get/2.0.0";
$method = "post";
$params = ['phone' => $phone, 'page_size' => $page_size];
$result = $client->request($method, $url, $params);
//返回结果集;
//die(json_encode($result));
//The return code is OK and the total is 1,则返回对应的user_id;
$res = array();
if ($result['code'] == 0 && $result['data']['total'] == 1) {
$res['code'] = 0;
$res['msg'] = 'success';
$res['user_id'] = $result['data']['list'][0]['user_id'];
die(json_encode($res));
} else {
$res['code'] = $result['code'];
$res['user_id'] = $result['data']['list'][0]['user_id'];
$res['msg'] = 'API获取user_id异常';
die(json_encode($res));
}
}
注册用户
/*注册用户 * $data,类型:array,用户信息; * data.wx_name 否 string 真实姓名 * data.nickname 否 string 微信 用户昵称 * data.country 否 string 国家 * data.province 否 string 省份 * data.city 否 string 城市 * data.gender 否 int 性别 0-无 1-男 2-女 * data.company 否 string 单位 */
function syncUser($data)
{
require_once __DIR__ . '/libs/Client.php';
$client = new Client();
$url = "https://api.xiaoe-tech.com/xe.user.register/1.0.0";
$method = "post";
$params = ['data' => $data];
$result = $client->request($method, $url, $params);
//返回结果集;
//die(json_encode($result));
//The return code is OK and the total is 1,则返回对应的user_id;
$res = array();
//新注册用户;
if ($result['code'] == 0 && $result['data']['user_exists'] <> 0) {
$res['code'] = 0;
$res['msg'] = '已注册用户';
$res['user_id'] = $result['data']['user_id'];
return json_encode($res);
} else {
$res['code'] = $result['code'];
$res['msg'] = '新注册用户';
$res['user_id'] = $result['data']['user_id'];
return json_encode($res);
}
}
总结
提示:这里对文章进行总结:
@lockdata.cn
边栏推荐
- An implementation of an ordered doubly linked list.
- 30-day question brushing plan (5)
- 【kali-信息收集】(1.4)识别活跃的主机/查看打开的端口:Nmap(网络映射器工具)
- 面试突击70:什么是粘包和半包?怎么解决?
- Debug一个ECC的ODP数据源
- 30天刷题计划(五)
- Remove 360's detection and modification of the default browser
- Failed to re-init queues : Illegal queue capacity setting (abs-capacity=0.6) > (abs-maximum-capacity
- XSS range intermediate bypass
- [Multi-task learning] Modeling Task Relationships in Multi-task Learning with Multi-gate Mixture-of-Experts KDD18
猜你喜欢
![[Energy Conservation Institute] Comparative analysis of smart small busbar and column head cabinet solutions in data room](/img/c2/456eec59930321b4f088020905c246.jpg)
[Energy Conservation Institute] Comparative analysis of smart small busbar and column head cabinet solutions in data room

第57章 业务逻辑之业务实体与数据库表的映射规则定义

18. Distributed configuration center nacos

win10,在proe/creo中鼠标中键不能放大缩小

【节能学院】智能操控装置在高压开关柜的应用

终于有人把AB实验讲明白了

泰德制药董事长郑翔玲荣膺“2022卓越影响力企业家奖” 泰德制药荣获“企业社会责任典范奖”

18、分布式配置中心nacos

【torch】张量乘法:matmul,einsum

因斯布鲁克大学团队量子计算硬件突破了二进制
随机推荐
泰德制药董事长郑翔玲荣膺“2022卓越影响力企业家奖” 泰德制药荣获“企业社会责任典范奖”
SIPp installation and use
小数据如何学习?吉大最新《小数据学习》综述,26页pdf涵盖269页文献阐述小数据学习理论、方法与应用
Greenplum数据库源码分析——Standby Master操作工具分析
【Untitled】
LabVIEW 使用VISA Close真的关闭COM口了吗
【节能学院】安科瑞餐饮油烟监测云平台助力大气污染攻坚战
Redis does web page UV statistics
PROE/Croe如何编辑已完成的草图,让其再次进入草绘状态
57:第五章:开发admin管理服务:10:开发【从MongoDB的GridFS中,获取文件,接口】;(从GridFS中,获取文件的SOP)(不使用MongoDB的服务,可以排除其自动加载类)
第60章 ApplicationPart自动集成整体性和独立性插件项
部署zabbix
WhatsApp group sending actual combat sharing - WhatsApp Business API account
ARTS_202207W2
SIPp 安装及使用
myid file is missing
有用的网站
【Untitled】
Compose实战-实现一个带下拉加载更多功能的LazyColumn
JS数组过滤