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
fc62c7ea
Commit
fc62c7ea
authored
Aug 26, 2024
by
tongzifang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update HeaderInterceptor
parent
b49ddc93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
15 deletions
+7
-15
header_interceptor.dart
lib/http/header_interceptor.dart
+7
-3
qmai_host.dart
lib/http/qmai_host.dart
+0
-12
No files found.
lib/http/header_interceptor.dart
View file @
fc62c7ea
...
...
@@ -17,11 +17,15 @@ class HeaderInterceptor extends Interceptor {
'QM-STORE-AUTH'
:
'undefined2'
,
'X-CSRF-TOKEN'
:
'{{csrf_token()}}'
,
'Connection'
:
'close'
,
'Referer'
:
QmaiHost
.
getBas
ic
Url
(),
'Referer'
:
QmaiHost
.
getBas
e
Url
(),
'Cookie'
:
'qm_account_token=
$userToken
'
,
'content-type'
:
'application/json'
,
'User-Agent'
:
'wechatdevtools appservice port/62739'
,
'Qm-From-Type'
:
userToken
,
'User-Agent'
:
'qmsd_android'
,
'Qm-From-Type'
:
Platform
.
isAndroid
?
'qmzs-android'
:
Platform
.
isIOS
?
'qmzs-iOS'
:
'other'
,
'Authorization'
:
'Bearer
$userToken
'
,
'Qm-Account-Token'
:
userToken
,
'Qm-seller-Token'
:
userTokenNew
,
...
...
lib/http/qmai_host.dart
View file @
fc62c7ea
...
...
@@ -15,16 +15,4 @@ class QmaiHost {
return
'https://inapi.qmai.cn/
$organ
/'
;
}
//basic copy原生逻辑
static
String
getBasicUrl
()
{
String
?
buildType
=
SpUtil
.
getString
(
'build_type'
);
if
(
buildType
==
'debug'
||
buildType
==
'dev'
)
{
return
'http://qmapp.dev.zmcms.cn/'
;
}
else
if
(
buildType
==
'shop'
)
{
return
'http://qmapp.qimai.shop/'
;
}
else
if
(
buildType
==
'beta'
)
{
return
'http://qmapp.qmai.co/'
;
}
else
return
'http://sellerapp.qmai.cn/'
;
}
}
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