公告更新

This commit is contained in:
GaoHao
2025-01-09 16:47:09 +08:00
parent bc88a048aa
commit 91c5592191
4 changed files with 93 additions and 53 deletions

View File

@@ -45,7 +45,8 @@ const $map = {
858: 'isAccountPay',
860: 'dyadUnitId',
881: '',
109: ''
109: '',
922: 'withdrawNum'
}
function callback() {
@@ -78,19 +79,18 @@ function callback() {
}
export async function init(isNowRequest=false) {
if(!$cache_config||$cache_config.isEmpty()||isNowRequest){
httpsRequest.getT('/app/common/getAppUseKv').then(res => {
console.log(res);
if (res.code == 0) {
for (let i in $map) {
const key = $map[i]
if (key) {
// uni.setStorageSync(key, res.data[i])
$cache_config.set(key, res.data[i])
// callback()
}
const res=await httpsRequest.getT('/app/common/getAppUseKv')
if (res.code == 0) {
for (let i in $map) {
const key = $map[i]
if (key) {
// uni.setStorageSync(key, res.data[i])
$cache_config.set(key, res.data[i])
// callback()
}
}
})
}
return res
}