mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-09-25 23:54:31 +08:00
添加收藏功能
This commit is contained in:
@ -1,11 +1,14 @@
|
||||
import 'dart:async' show Future;
|
||||
|
||||
import 'package:fluro/fluro.dart';
|
||||
import 'package:flutter_go/model/version.dart';
|
||||
import 'package:package_info/package_info.dart';
|
||||
|
||||
import './net_utils.dart';
|
||||
import '../model/user_info.dart';
|
||||
import 'package:flutter_go/api/api.dart';
|
||||
import 'package:flutter_go/routers/application.dart';
|
||||
import 'package:flutter_go/routers/routers.dart';
|
||||
|
||||
class DataUtils {
|
||||
// 登陆获取用户信息
|
||||
@ -46,9 +49,12 @@ class DataUtils {
|
||||
}
|
||||
|
||||
// 一键反馈
|
||||
static Future feedback(Map<String, String> params) async {
|
||||
static Future feedback(Map<String, String> params, context) async {
|
||||
var response = await NetUtils.post(Api.FEEDBACK, params);
|
||||
print(response);
|
||||
// print(response);
|
||||
if(response['status'] == 401 && response['message']=='请先登录'){
|
||||
Application.router.navigateTo(context, '${Routes.loginPage}',transition:TransitionType.nativeModal);
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user