diff --git a/lib/http/ApiService.dart b/lib/http/ApiService.dart index 14474b4..494b83a 100644 --- a/lib/http/ApiService.dart +++ b/lib/http/ApiService.dart @@ -9,19 +9,19 @@ class ApiService { static final bool isProduct = true; /// 登录及其他管理后台接口 - static final String basePath = "http://192.168.198.8:30140"; - // static final String basePath = - // isProduct - // ? "https://gbs-gateway.qhdsafety.com" - // : "http://192.168.20.100:30140"; + // static final String basePath = "http://192.168.198.8:30140"; + static final String basePath = + isProduct + ? "https://gbs-gateway.qhdsafety.com" + : "http://192.168.20.100:30140"; /// 图片文件服务 - // static final String baseImgPath = - // isProduct - // ? "https://jpfz.qhdsafety.com/gbsFileTest/" - // : "http://192.168.20.240:9787/mnt/"; //内网图片地址 - static final String baseImgPath = "https://skqhdg.porthebei.com:9004/file/uploadFiles2/"; + static final String baseImgPath = + isProduct + ? "https://jpfz.qhdsafety.com/gbsFileTest/" + : "http://192.168.20.240:9787/mnt/"; //内网图片地址 + // static final String baseImgPath = "https://skqhdg.porthebei.com:9004/file/uploadFiles2/"; static const publicKey =