This commit is contained in:
houjunxiang
2025-10-09 18:19:55 +08:00
parent f2ffc65094
commit 386f1e7466
1553 changed files with 284685 additions and 32820 deletions

235
nx/utils/base64.js Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,62 @@
import { getUpgradeBaseUrl, getTenantId, clientId } from '@/defaultBaseUrl'
export default function () {
// #ifdef APP-PLUS
return new Promise((resolve, reject) => {
plus.runtime.getProperty(plus.runtime.appid, function (widgetInfo) {
const osName = plus.os.name
let appId = plus.runtime.appid
appId = clientId
uni.request({
url:
getUpgradeBaseUrl() +
'/api/sys/app-client-version/latestVersionUniapp?clientId=' +
appId +
'&platform=' +
osName +
'&tenantId=' +
getTenantId(),
method: 'GET',
success: res => {
if (res.data && res.data.result) {
res.data.result.localVersion = plus.runtime.version
res.data.result.localWgtVersion = widgetInfo.version
res.data.result.url = getUpgradeBaseUrl() + res.data.result.url
}
console.log('更新信息:', res.data)
resolve(res.data)
},
fail: err => {
reject(error)
}
})
// uni.request(options).then(res => {
// resolve(res)
// }).catch(err => {
// reject(error)
// });
// uniCloud.callFunction({
// name: 'check-version',
// data: {
// appid: plus.runtime.appid,
// appVersion: plus.runtime.version,
// wgtVersion: widgetInfo.version
// },
// success: (e) => {
// resolve(e)
// },
// fail: (error) => {
// reject(error)
// }
// })
})
})
// #endif
// #ifndef APP-PLUS
return new Promise((resolve, reject) => {
reject({
message: '请在App中使用'
})
})
// #endif
}

244
nx/utils/check-update.js Normal file

File diff suppressed because it is too large Load Diff

234
nx/utils/crypto-js/aes.js Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,39 @@
{
"name": "crypto-js",
"version": "4.1.1",
"description": "JavaScript library of crypto standards.",
"license": "MIT",
"homepage": "http://github.com/brix/crypto-js",
"repository": {
"type": "git",
"url": "http://github.com/brix/crypto-js.git"
},
"keywords": [
"security",
"crypto",
"Hash",
"MD5",
"SHA1",
"SHA-1",
"SHA256",
"SHA-256",
"RC4",
"Rabbit",
"AES",
"DES",
"PBKDF2",
"HMAC",
"OFB",
"CFB",
"CTR",
"CBC",
"Base64",
"Base64url"
],
"main": "index.js",
"dependencies": {},
"browser": {
"crypto": false
},
"ignore": []
}

File diff suppressed because it is too large Load Diff

807
nx/utils/crypto-js/core.js Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More