Use auth domain for license SDK
这个提交包含在:
父节点
cbc8ed56cd
当前提交
8cf7ebb317
@ -72,7 +72,7 @@ val deviceId = LicenseSDK.getDeviceId()
|
||||
|-----------|---------|-------------|
|
||||
| `appKey` | from encrypted file | Company appKey from tenant platform |
|
||||
| `deviceName` | `${MANUFACTURER} ${MODEL}` | Device display name |
|
||||
| `baseUrl` | `https://auto.dev.xuqinmin.com/` | License server base URL |
|
||||
| `baseUrl` | `https://auth.dev.xuqinmin.com/` | License server base URL |
|
||||
|
||||
## Data Storage
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@ package com.xuqm.sdk.license
|
||||
|
||||
data class LicenseConfig(
|
||||
val appKey: String,
|
||||
val baseUrl: String = "https://auto.dev.xuqinmin.com/",
|
||||
val baseUrl: String = "https://auth.dev.xuqinmin.com/",
|
||||
val deviceName: String? = null,
|
||||
val cacheWindowMs: Long = 10 * 60 * 1000L, // 10 minutes
|
||||
)
|
||||
|
||||
@ -19,7 +19,7 @@ object LicenseSDK {
|
||||
|
||||
private const val STATUS_OK = "ok"
|
||||
private const val STATUS_DENIED = "denied"
|
||||
private const val DEFAULT_BASE_URL = "https://auto.dev.xuqinmin.com/"
|
||||
private const val DEFAULT_BASE_URL = "https://auth.dev.xuqinmin.com/"
|
||||
|
||||
private var initialized = false
|
||||
private lateinit var appContext: Context
|
||||
@ -35,7 +35,7 @@ object LicenseSDK {
|
||||
* @param context Application context
|
||||
* @param appKey The company appKey (e.g., "f713d051-0fbe-4f2d-bec9-bf7b96fc9ce4")
|
||||
* @param deviceName Optional device name for identification
|
||||
* @param baseUrl Optional custom license server base URL. Defaults to https://auto.dev.xuqinmin.com/
|
||||
* @param baseUrl Optional custom license server base URL. Defaults to https://auth.dev.xuqinmin.com/
|
||||
*/
|
||||
@JvmStatic
|
||||
@JvmOverloads
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户