fix: 关注/粉丝/全部跳转异常、个人主页请求异常

This commit is contained in:
guozhigq
2023-09-18 07:18:07 +08:00
parent 93383a5c65
commit f543be562a
3 changed files with 10 additions and 3 deletions

View File

@ -18,6 +18,7 @@ class MemberHttp {
var res = await Request().get(
Api.memberInfo,
data: params,
extra: {'ua': 'pc'},
);
if (res.data['code'] == 0) {
return {
@ -83,6 +84,7 @@ class MemberHttp {
var res = await Request().get(
Api.memberArchive,
data: params,
extra: {'ua': 'pc'},
);
if (res.data['code'] == 0) {
return {

View File

@ -91,7 +91,10 @@ class _UpPanelState extends State<UpPanel> {
),
Material(
child: InkWell(
onTap: () => {feedBack(), Get.toNamed('/follow')},
onTap: () => {
feedBack(),
Get.toNamed('/follow?mid=${userInfo.mid}')
},
child: Container(
height: 100,
padding: const EdgeInsets.only(left: 10, right: 10),

View File

@ -264,7 +264,8 @@ class _MinePageState extends State<MinePage> {
),
),
InkWell(
onTap: () => Get.toNamed('/follow'),
onTap: () => Get.toNamed(
'/follow?mid=${_mineController.userInfo.value.mid}'),
borderRadius: StyleString.mdRadius,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
@ -294,7 +295,8 @@ class _MinePageState extends State<MinePage> {
),
),
InkWell(
onTap: () => Get.toNamed('/fan'),
onTap: () => Get.toNamed(
'/fan?mid=${_mineController.userInfo.value.mid}'),
borderRadius: StyleString.mdRadius,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,