mod: common slide page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-05 10:44:49 +08:00
parent 9c21f03df8
commit 6497fb6cd0
11 changed files with 133 additions and 153 deletions

View File

@@ -82,14 +82,18 @@ class WbiSign {
return mixinKey;
}
final resp = await Request().get(Api.userInfo);
final wbiUrls = resp.data['data']['wbi_img'];
mixinKey = getMixinKey(
getFileName(wbiUrls['img_url']) + getFileName(wbiUrls['sub_url']));
if (resp.data['code'] == 0) {
final wbiUrls = resp.data['data']['wbi_img'];
localCache.put(LocalCacheKey.mixinKey, mixinKey);
localCache.put(LocalCacheKey.timeStamp, nowDate.millisecondsSinceEpoch);
return mixinKey;
mixinKey = getMixinKey(
getFileName(wbiUrls['img_url']) + getFileName(wbiUrls['sub_url']));
localCache.put(LocalCacheKey.mixinKey, mixinKey);
localCache.put(LocalCacheKey.timeStamp, nowDate.millisecondsSinceEpoch);
}
return mixinKey ?? '';
}
static Future<Map<String, dynamic>> makSign(