leiting.qihang_sdk
简介
接入雷霆平台 - 启航sdk
https://leiting.feishu.cn/wiki/RCyLwilLqigzONkxPIVccfZ1nhb
组件接口
类
LtQihangLoginAuthRequest
继承自 LtRequest
登录验证请求
成员变量
| 变量名 | 类型 | 初始值 | 须初始化 | 描述 |
|---|---|---|---|---|
| userId | string | nil | 可选 | 手游账号ID - Y |
| game | string | nil | 可选 | 游戏标识 - Y |
| channelNo | string | nil | 可选 | 渠道编号 - Y |
| token | string | nil | 可选 | 登录凭证 - Y |
成员方法
| 函数原型 | 函数作用 |
|---|---|
| string get_url(string host) | 获取请求地址 |
| LtResult new_result() | 创建请求结果的实例 |
LtQihangLoginAuthResult
继承自 LtResult
登录验证结果
成员变量
| 变量名 | 类型 | 初始值 | 须初始化 | 描述 |
|---|
成员方法
| 函数原型 | 函数作用 |
|---|---|
| string get_id_card() | 获取身份证 |
| int get_age() | 获取年龄 |
| string get_birthday() | 获取生日 |
| bool is_adult() | 是不是成年人 |
| bool is_minor() | 是不是未成年人 |
| bool is_unreal_name() | 是不是未实名认证 |
样例
public void pkg_sample()
{
string game = "xian";
LtQihangLoginAuthRequest req = LtQihangLoginAuthRequest.new();
req.userId = "userId";
req.game = game;
req.channelNo = "channelNo";
req.token = "token";
LtResult result = req.request("https://testdemologin.leiting.com", nil);
printf("[%s]-> req=%O,result=%O\n", __FUN__, req, result);
}