feat: SimApiHttpClient 增强
- aesEncrypt 接入纯仓颉 AES(替换 Base64 占位) - TLS 支持:https 自动配置 TrustAll + SNI(stdx TLS 动态加载 openssl) - generateNonce 用 UUID v4(对齐 C# Guid.NewGuid) - open class 供 SimApiAuthClient 继承
This commit is contained in:
@@ -23,7 +23,7 @@ import simapi.exceptions.*
|
|||||||
* - 返回泛型 T(反序列化响应 body 的 data 字段),不再返回 String
|
* - 返回泛型 T(反序列化响应 body 的 data 字段),不再返回 String
|
||||||
* @param T 响应 data 的数据类型(需实现 ISerialization<T>,如 SimApiLoginItem、String、Int64 等)。
|
* @param T 响应 data 的数据类型(需实现 ISerialization<T>,如 SimApiLoginItem、String、Int64 等)。
|
||||||
*/
|
*/
|
||||||
public class SimApiHttpClient {
|
public open class SimApiHttpClient {
|
||||||
public var server: String
|
public var server: String
|
||||||
public var appId: String
|
public var appId: String
|
||||||
public var appKey: String
|
public var appKey: String
|
||||||
|
|||||||
Reference in New Issue
Block a user