Commit bb897cf2 authored by tongzifang's avatar tongzifang

add international host

parent fc62c7ea
...@@ -4,15 +4,9 @@ class QmaiHost { ...@@ -4,15 +4,9 @@ class QmaiHost {
//base copy原生逻辑 //base copy原生逻辑
static String getBaseUrl() { static String getBaseUrl() {
String? buildType = SpUtil.getString('build_type'); String? buildType = SpUtil.getString('build_type');
String? organ = SpUtil.getString('organ'); if (buildType == 'shop') {
if (buildType == 'debug'||buildType == 'dev') { return 'https://inapi.sgp.qimai.shop/gw/';
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/';
} else } else
return 'https://inapi.qmai.cn/$organ/'; return 'https://inapi.qmai.com/gw/';
} }
} }
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