fix: 修复登录正式环境无法正常跳转到锁详情页问题

This commit is contained in:
“DaisyWu” 2024-12-18 10:32:34 +08:00
parent c9a7ad72bb
commit 59d6bc1ea7

View File

@ -61,12 +61,14 @@ class StarLockLoginLogic extends BaseGetXController {
Storage.saveLoginData(entity.data); Storage.saveLoginData(entity.data);
Storage.setBool(saveIsVip, entity.data!.isVip == 1); Storage.setBool(saveIsVip, entity.data!.isVip == 1);
// //
if (entity.data!.starchart != null) {
final Starchart starChart = entity.data!.starchart!; final Starchart starChart = entity.data!.starchart!;
Storage.saveStarChartRegisterNodeInfo(StarChartRegisterNodeEntity( Storage.saveStarChartRegisterNodeInfo(StarChartRegisterNodeEntity(
peer: PeerData( peer: PeerData(
id: starChart.starchartId, id: starChart.starchartId,
publicKey: starChart.starchartPeerPublicKey, publicKey: starChart.starchartPeerPublicKey,
privateKey: starChart.starchartPeerPrivateKey))); privateKey: starChart.starchartPeerPrivateKey)));
}
eventBus.fire(MineInfoChangeRefreshUI()); eventBus.fire(MineInfoChangeRefreshUI());
if (Get.isRegistered<LockMainLogic>()) { if (Get.isRegistered<LockMainLogic>()) {
Get.find<LockMainLogic>().getStarLockInfo(isUnShowLoading: true); Get.find<LockMainLogic>().getStarLockInfo(isUnShowLoading: true);