Commit ef69db8d authored by 艾娇平's avatar 艾娇平

暂存

parent 4462e533
......@@ -146,6 +146,8 @@ class _OpinionPageState extends State<OpinionPage> {
void confirmClick() {
// 提交信息 && 回到上一级页面
// MethodHandler hdler = MethodHandler(MethodCall('hj',{'d':'d'}));
// HybridStackManagerPlugin.hybridStackManagerPlugin.setMethodCallHandler(hdler);
HybridStackManagerPlugin.hybridStackManagerPlugin.popCurPage();
print('confirmClick');
......
......@@ -12,6 +12,7 @@ import 'ALServers.dart';
import 'package:dio/dio.dart';
import 'dart:io';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:device_info/device_info.dart';
class ALResponse {
......@@ -46,6 +47,8 @@ class ALResponse {
// 通用参数
String urlCommonParameters() {
DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();
return 'platform=iPhone&os_version=12.1.2&version=1.3.0&model=iPhone%20XS%20Max&release=0&idfa=EE10F836-B882-4AB8-9AB1-8E116BD48DEE&idfv=178AB378-66BF-46B3-BD12-C10FAA35C74C&device_id=EE10F836-B882-4AB8-9AB1-8E116BD48DEE&channel=(null)&app_name=gengmeiios&current_city_id=worldwide&lat=0&lng=0&is_WiFi=(null)&phone_id=iPhone11,6&count=10&page=1&type=1';
}
......@@ -58,7 +61,6 @@ String fullAPI(api) {
Options requestOptions(type) {
Options options = new Options(
baseUrl: '',
contentType: new ContentType('application', 'x-www-form-urlencoded',charset: 'utf-8'),
headers: {'User-Agent':'Mozilla/5.0 (iPhone; CPU iPhone OS 10_10_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12B411 GMAlpha/1.2.1'},
connectTimeout: ALServers.ConnetTimeOut,
......
......@@ -71,6 +71,13 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.1.2"
device_info:
dependency: "direct main"
description:
name: device_info
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.4.0+1"
dio:
dependency: "direct main"
description:
......
......@@ -29,6 +29,8 @@ dependencies:
dio: ^2.0.0
# 数据存储
shared_preferences: ^0.4.2
device_info: ^0.4.0
dev_dependencies:
flutter_test:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment