公告更新
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user