version:1.1.3
fix: update:优化支付问题,增加九学王激活逻辑
This commit is contained in:
@@ -27,14 +27,20 @@ public class DeviceSNManager {
|
||||
public static String getDeviceSN() {
|
||||
String existingSN = mMMKV.decodeString(SN_KEY, "");
|
||||
|
||||
if (!TextUtils.isEmpty(existingSN)) {
|
||||
// if (!TextUtils.isEmpty(existingSN)) {
|
||||
return existingSN;
|
||||
}
|
||||
String newSN = generateNewSN();
|
||||
mMMKV.encode(SN_KEY, newSN);
|
||||
return newSN;
|
||||
// }
|
||||
|
||||
// String newSN = generateNewSN();
|
||||
// mMMKV.encode(SN_KEY, newSN);
|
||||
// return newSN;
|
||||
}
|
||||
|
||||
public static void saveDeviceSN(String sn) {
|
||||
mMMKV.encode(SN_KEY, sn);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 生成新的设备SN
|
||||
* 格式:CDSN202511T923852225
|
||||
|
||||
Reference in New Issue
Block a user