mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: get mid
This commit is contained in:
@@ -287,7 +287,7 @@ class _CreatePanelState extends State<CreatePanel> {
|
||||
}
|
||||
}
|
||||
dynamic result = await MsgHttp.createDynamic(
|
||||
mid: GStorage.userInfo.get('userInfoCache').mid,
|
||||
mid: GStorage.userInfo.get('userInfoCache')?.mid,
|
||||
rawText: _ctr.text,
|
||||
pics: pics,
|
||||
publishTime: _publishTime != null
|
||||
|
||||
@@ -196,7 +196,7 @@ class _RepostPanelState extends State<RepostPanel> {
|
||||
|
||||
Future _onRepost() async {
|
||||
dynamic result = await MsgHttp.createDynamic(
|
||||
mid: GStorage.userInfo.get('userInfoCache').mid,
|
||||
mid: GStorage.userInfo.get('userInfoCache')?.mid,
|
||||
dynIdStr: widget.item.idStr,
|
||||
rawText: _ctr.text,
|
||||
);
|
||||
|
||||
@@ -232,7 +232,7 @@ class MorePanel extends StatelessWidget {
|
||||
minLeadingWidth: 0,
|
||||
),
|
||||
if (item.modules.moduleAuthor.mid ==
|
||||
GStorage.userInfo.get('userInfoCache').mid)
|
||||
GStorage.userInfo.get('userInfoCache')?.mid)
|
||||
ListTile(
|
||||
onTap: () async {
|
||||
Get.back();
|
||||
|
||||
@@ -232,7 +232,7 @@ class MorePanel extends StatelessWidget {
|
||||
minLeadingWidth: 0,
|
||||
),
|
||||
if (item.modules.moduleAuthor.mid ==
|
||||
GStorage.userInfo.get('userInfoCache').mid)
|
||||
GStorage.userInfo.get('userInfoCache')?.mid)
|
||||
ListTile(
|
||||
onTap: () async {
|
||||
Get.back();
|
||||
|
||||
Reference in New Issue
Block a user