fix: bangumi mid

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-31 16:59:44 +08:00
parent e834311664
commit 3ccc7ef69d
15 changed files with 21 additions and 18 deletions

View File

@@ -475,7 +475,7 @@ class _CreateDynPanelState extends CommonPublishPageState<CreateDynPanel> {
Future onCustomPublish({required String message, List? pictures}) async {
SmartDialog.showLoading(msg: '正在发布');
dynamic result = await MsgHttp.createDynamic(
mid: GStorage.userInfo.get('userInfoCache')?.mid,
mid: Accounts.main.mid,
rawText: editController.text,
pics: pictures,
publishTime: _publishTime != null

View File

@@ -376,7 +376,7 @@ class _RepostPanelState extends CommonPublishPageState<RepostPanel> {
@override
Future onCustomPublish({required String message, List? pictures}) async {
dynamic result = await MsgHttp.createDynamic(
mid: GStorage.userInfo.get('userInfoCache')?.mid,
mid: Accounts.main.mid,
dynIdStr: widget.item?.idStr,
rid: widget.rid,
dynType: widget.dynType,

View File

@@ -359,8 +359,7 @@ class AuthorPanel extends StatelessWidget {
},
minLeadingWidth: 0,
),
if (item.modules.moduleAuthor.mid ==
GStorage.userInfo.get('userInfoCache')?.mid &&
if (item.modules.moduleAuthor.mid == Accounts.main.mid &&
onRemove != null)
ListTile(
onTap: () async {

View File

@@ -234,8 +234,7 @@ class MorePanel extends StatelessWidget {
},
minLeadingWidth: 0,
),
if (item.modules.moduleAuthor.mid ==
GStorage.userInfo.get('userInfoCache')?.mid)
if (item.modules.moduleAuthor.mid == Accounts.main.mid)
ListTile(
onTap: () async {
Get.back();