Use appKey in license SDK requests
这个提交包含在:
父节点
2577d6e3e2
当前提交
e81bf89697
@ -85,7 +85,7 @@ val deviceId = LicenseSDK.getDeviceId()
|
||||
|
||||
| Parameter | Default | Description |
|
||||
|-----------|---------|-------------|
|
||||
| `appKey` | from encrypted file | Company appKey from tenant platform |
|
||||
| `appKey` | from encrypted file | AppKey from tenant platform |
|
||||
| `deviceName` | `${MANUFACTURER} ${MODEL}` | Device display name |
|
||||
| `baseUrl` | `https://auth.dev.xuqinmin.com/` | License server base URL |
|
||||
|
||||
|
||||
@ -109,7 +109,7 @@ object LicenseSDK {
|
||||
// Try to verify existing token
|
||||
val result = apiService.verify(
|
||||
VerifyRequest(
|
||||
companyId = config.appKey,
|
||||
appKey = config.appKey,
|
||||
deviceId = deviceId,
|
||||
token = token,
|
||||
userInfo = userInfo,
|
||||
@ -128,7 +128,7 @@ object LicenseSDK {
|
||||
// No token or token invalid, register new device
|
||||
val result = apiService.register(
|
||||
RegisterRequest(
|
||||
companyId = config.appKey,
|
||||
appKey = config.appKey,
|
||||
deviceId = deviceId,
|
||||
deviceName = config.deviceName,
|
||||
deviceModel = DeviceInfoProvider.getDeviceModel(),
|
||||
|
||||
@ -3,7 +3,7 @@ package com.xuqm.sdk.license.model
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
||||
data class RegisterRequest(
|
||||
@SerializedName("companyId") val companyId: String,
|
||||
@SerializedName("appKey") val appKey: String,
|
||||
@SerializedName("deviceId") val deviceId: String,
|
||||
@SerializedName("deviceName") val deviceName: String? = null,
|
||||
@SerializedName("deviceModel") val deviceModel: String? = null,
|
||||
@ -19,7 +19,7 @@ data class RegisterResponse(
|
||||
)
|
||||
|
||||
data class VerifyRequest(
|
||||
@SerializedName("companyId") val companyId: String,
|
||||
@SerializedName("appKey") val appKey: String,
|
||||
@SerializedName("deviceId") val deviceId: String,
|
||||
val token: String,
|
||||
@SerializedName("userInfo") val userInfo: LicenseUserInfo? = null,
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户