Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
base_data_channel
Project
Project
Details
Activity
Releases
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
PublicSource
base_data_channel
Commits
1734d4e0
Commit
1734d4e0
authored
May 16, 2024
by
tongzifang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update boost
parent
5ec9f376
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
pubspec.lock
example/pubspec.lock
+3
-3
header_interceptor.dart
lib/http/header_interceptor.dart
+9
-1
pubspec.yaml
pubspec.yaml
+1
-1
No files found.
example/pubspec.lock
View file @
1734d4e0
...
@@ -185,11 +185,11 @@ packages:
...
@@ -185,11 +185,11 @@ packages:
dependency: transitive
dependency: transitive
description:
description:
path: "."
path: "."
ref: "4.
2.2
"
ref: "4.
5.7
"
resolved-ref:
"2e65cd6ebccd727c89d1a134175d724e5005a414"
resolved-ref:
ad581ac33ec976a2531306f61c1d53e7b2e29c41
url: "https://github.com/alibaba/flutter_boost.git"
url: "https://github.com/alibaba/flutter_boost.git"
source: git
source: git
version: "
3.0.0
"
version: "
4.5.7
"
flutter_cache_manager:
flutter_cache_manager:
dependency: transitive
dependency: transitive
description:
description:
...
...
lib/http/header_interceptor.dart
View file @
1734d4e0
import
'dart:io'
;
import
'package:base_data_channel/config/business_type.dart'
;
import
'package:base_data_channel/config/business_type.dart'
;
import
'package:base_data_channel/http/qmai_host.dart'
;
import
'package:base_data_channel/http/qmai_host.dart'
;
import
'package:dio/dio.dart'
;
import
'package:dio/dio.dart'
;
...
@@ -24,6 +26,12 @@ class HeaderInterceptor extends Interceptor {
...
@@ -24,6 +26,12 @@ class HeaderInterceptor extends Interceptor {
'Qm-Account-Token'
:
userToken
,
'Qm-Account-Token'
:
userToken
,
'Qm-seller-Token'
:
userTokenNew
,
'Qm-seller-Token'
:
userTokenNew
,
'Qm-From'
:
'android'
,
'Qm-From'
:
'android'
,
'qm-channel'
:
'app'
,
'qm-device'
:
Platform
.
isAndroid
?
"android"
:
Platform
.
isIOS
?
"iOS"
:
"other"
,
};
};
options
.
headers
.
addAll
(
dictionary
);
options
.
headers
.
addAll
(
dictionary
);
if
(
SpUtil
.
getString
(
'businessType'
)
==
BusinessType
.
MealMate
.
type
&&
if
(
SpUtil
.
getString
(
'businessType'
)
==
BusinessType
.
MealMate
.
type
&&
...
...
pubspec.yaml
View file @
1734d4e0
...
@@ -57,5 +57,5 @@ dependencies:
...
@@ -57,5 +57,5 @@ dependencies:
flutter_boost
:
flutter_boost
:
git
:
git
:
url
:
'
https://github.com/alibaba/flutter_boost.git'
url
:
'
https://github.com/alibaba/flutter_boost.git'
ref
:
'
4.
2.2
'
ref
:
'
4.
5.7
'
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