Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gmalpha_flutter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile
gmalpha_flutter
Commits
ef69db8d
Commit
ef69db8d
authored
Feb 22, 2019
by
艾娇平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存
parent
4462e533
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletion
+14
-1
opinion.dart
lib/opinion.dart
+2
-0
ALNetClient.dart
lib/services/ALNetClient.dart
+3
-1
pubspec.lock
pubspec.lock
+7
-0
pubspec.yaml
pubspec.yaml
+2
-0
No files found.
lib/opinion.dart
View file @
ef69db8d
...
...
@@ -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'
);
...
...
lib/services/ALNetClient.dart
View file @
ef69db8d
...
...
@@ -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¤t_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
,
...
...
pubspec.lock
View file @
ef69db8d
...
...
@@ -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:
...
...
pubspec.yaml
View file @
ef69db8d
...
...
@@ -29,6 +29,8 @@ dependencies:
dio
:
^2.0.0
# 数据存储
shared_preferences
:
^0.4.2
device_info
:
^0.4.0
dev_dependencies
:
flutter_test
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment