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
bb897cf2
Commit
bb897cf2
authored
Aug 26, 2024
by
tongzifang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add international host
parent
fc62c7ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
qmai_host.dart
lib/http/qmai_host.dart
+3
-9
No files found.
lib/http/qmai_host.dart
View file @
bb897cf2
...
...
@@ -4,15 +4,9 @@ class QmaiHost {
//base copy原生逻辑
static
String
getBaseUrl
()
{
String
?
buildType
=
SpUtil
.
getString
(
'build_type'
);
String
?
organ
=
SpUtil
.
getString
(
'organ'
);
if
(
buildType
==
'debug'
||
buildType
==
'dev'
)
{
return
'http://inapi.zmcms.cn/
$organ
/'
;
}
else
if
(
buildType
==
'shop'
)
{
return
'http://inapi.qimai.shop/
$organ
/'
;
}
else
if
(
buildType
==
'beta'
)
{
return
'http://inapi.qmai.co/
$organ
/'
;
if
(
buildType
==
'shop'
)
{
return
'https://inapi.sgp.qimai.shop/gw/'
;
}
else
return
'https://inapi.qmai.c
n/
$organ
/'
;
return
'https://inapi.qmai.c
om/gw
/'
;
}
}
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