fix:增加使用登陆接口的scdUrl动态设置星图的url
This commit is contained in:
parent
5b5f804fe2
commit
6c73250481
@ -68,6 +68,7 @@ class LoginData {
|
||||
void updateStarchart(
|
||||
StarChartRegisterNodeEntity starChartRegisterNodeEntity) {
|
||||
starchart = Starchart(
|
||||
scdUrl: this.starchart?.scdUrl,
|
||||
starchartId: starChartRegisterNodeEntity.peer?.id,
|
||||
starchartPeerPublicKey: starChartRegisterNodeEntity.peer?.publicKey,
|
||||
starchartPeerPrivateKey: starChartRegisterNodeEntity.peer?.privateKey,
|
||||
|
||||
@ -80,7 +80,7 @@ class StarLockLoginLogic extends BaseGetXController {
|
||||
Storage.saveStarChartRegisterNodeInfo(starChartRegisterNodeEntity);
|
||||
entity.data!.updateStarchart(starChartRegisterNodeEntity);
|
||||
}
|
||||
Storage.saveLoginData(entity.data);
|
||||
await Storage.saveLoginData(entity.data);
|
||||
Storage.setBool(saveIsVip, entity.data!.isVip == 1);
|
||||
eventBus.fire(MineInfoChangeRefreshUI());
|
||||
if (Get.isRegistered<LockMainLogic>()) {
|
||||
|
||||
@ -158,7 +158,8 @@ class Starchart {
|
||||
String? starchartPeerPrivateKey;
|
||||
|
||||
Starchart(
|
||||
{this.scdUrl,this.starchartId,
|
||||
{this.scdUrl,
|
||||
this.starchartId,
|
||||
this.starchartPeerPublicKey,
|
||||
this.starchartPeerPrivateKey});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user