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

View File

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

View File

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