This commit is contained in:
我是个攻城狮
2026-08-17 17:06:26 +08:00
parent ca87258846
commit 7c0a521ea4
3 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -2,14 +2,14 @@ var app_url = 'https://cogapi.scszsj.com';
// 如果是本地测试环境
if(process.env.NODE_ENV === 'development'){
//#ifdef H5
app_url = 'http://gg.com/index.php'; //http://cogapitest.scszsj.com http://gg.com/index.php
app_url = 'http://cogapitest.scszsj.com'; //http://cogapitest.scszsj.com http://gg.com/index.php
//#endif
}
// 如果是生产环境,h5环境下直接读取url
if(process.env.NODE_ENV === 'production'){
//#ifdef H5
// app_url = window.location.protocol+'//' + window.location.host+'/index.php'; http://cogapitest.scszsj.com https://cogapi.scszsj.com
app_url = 'http://gg.com/index.php';
app_url = 'http://cogapitest.scszsj.com';
//#endif
}