mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
feat: load config from text (#1772)
* feat: load config from text * opt: login utils * update Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me> --------- Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
b4daf5fbd8
commit
244ef22f54
@@ -89,9 +89,7 @@ class _EditProfilePageState extends State<EditProfilePage> {
|
||||
res.data['data'],
|
||||
);
|
||||
_loadingState = Success(data);
|
||||
accountService
|
||||
..name.value = data.name!
|
||||
..face.value = data.face!;
|
||||
accountService.face.value = data.face!;
|
||||
try {
|
||||
UserInfoData userInfo = Pref.userInfoCache!
|
||||
..uname = data.name
|
||||
@@ -388,7 +386,6 @@ class _EditProfilePageState extends State<EditProfilePage> {
|
||||
data
|
||||
..name = _textController.text
|
||||
..coins = data.coins! - 6;
|
||||
accountService.name.value = _textController.text;
|
||||
try {
|
||||
UserInfoData userInfo = Pref.userInfoCache!
|
||||
..uname = _textController.text;
|
||||
|
||||
Reference in New Issue
Block a user