当前位置:网站首页>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
边栏推荐
- 密码学的基础:X.690和对应的BER CER DER编码
- 第58章 结构、纪录与类
- 用户体验好的Button,在手机上不应该有Hover态
- 1个小时!从零制作一个! AI图片识别WEB应用!
- 57: Chapter 5: Develop admin management services: 10: Develop [get files from MongoDB's GridFS, interface]; (from GridFS, get the SOP of files) (Do not use MongoDB's service, you can exclude its autom
- ARTS_202207W2
- GEE(8):使用MODIS填补由去云后的Landsat影像计算得到的NDVI数据
- 不恰当Equatable协议==方法的实现对SwiftUI中@State修饰属性的影响
- regular expression
- LabVIEW 使用VISA Close真的关闭COM口了吗
猜你喜欢
![[Energy Conservation Institute] Ankerui Food and Beverage Fume Monitoring Cloud Platform Helps Fight Air Pollution](/img/ca/e67c8e2196adb5a078acc44ba5ad6f.jpg)
[Energy Conservation Institute] Ankerui Food and Beverage Fume Monitoring Cloud Platform Helps Fight Air Pollution

WhatsApp群发实战分享——WhatsApp Business API账号

环境变量,进程地址空间

Remove 360's detection and modification of the default browser

【个人作品】记之-串口日志记录工具

Application of Acrel-5010 online monitoring system for key energy consumption unit energy consumption in Hunan Sanli Group

58:第五章:开发admin管理服务:11:开发【管理员人脸登录,接口】;(未实测)(使用了阿里AI人脸识别)(演示了,使用RestTemplate实现接口调用接口;)

9月备考PMP,应该从哪里备考?

Greenplum Database Source Code Analysis - Analysis of Standby Master Operation Tools

【kali-信息收集】(1.4)识别活跃的主机/查看打开的端口:Nmap(网络映射器工具)
随机推荐
Greenplum数据库源码分析——Standby Master操作工具分析
WhatsApp group sending actual combat sharing - WhatsApp Business API account
kingbaseV8R3和postgreSQL哪个版本最接近?
根据Uniprot ID/PDB ID批处理获取蛋白质.pdb文件
小数据如何学习?吉大最新《小数据学习》综述,26页pdf涵盖269页文献阐述小数据学习理论、方法与应用
图文详述Eureka的缓存机制/三级缓存
我的驾照考试笔记(4)
二维、三维、四维矩阵每个维度含义解释
有序双向链表的实现。
Application of Acrel-5010 online monitoring system for key energy consumption unit energy consumption in Hunan Sanli Group
多线程之生产者与消费者
Creo5.0 rough hexagon is how to draw
大整数相加,相减,相乘,大整数与普通整数的相乘,相除
【节能学院】智能操控装置在高压开关柜的应用
openresty 动态黑白名单
Pytorch模型训练实用教程学习笔记:四、优化器与学习率调整
"No title"
How PROE/Croe edits a completed sketch and brings it back to sketching state
第56章 业务逻辑之物流/配送实体定义
To promote energy conservation institute 】 【 the opinions of the agricultural water price reform