Commit 036ba1ba authored by sujie@126.com's avatar sujie@126.com

dd

parent a5b97c9a
......@@ -17,6 +17,6 @@
<slot name="tcontent-right"></slot>
</view>
</view>
</view>
</view>
</view>
export default {
imageRoot: 'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/',
// host: 'https://qxapi.qingxiao.online/daka',
// host2: 'https://wx.m.shangjiadao.cn',
host: 'https://qxapi.qingxiao.online/daka',
host2: 'https://wx.m.shangjiadao.cn',
storageVersion: '4.0',
imageVersion: '20191104',
host: 'https://clock.wp53.cn',
host2: 'https://test.wp53.cn',
// host: 'https://clock.wp53.cn',
// host2: 'https://test.wp53.cn',
appId: 'wxc1246ea029394785',
miniProgram: {
clock: 'wxdeee20e52a1fd7ee'
......
import constants from './constants.js';
let NODE_ENV = 'pro';
const fileManager = wx.getFileSystemManager();
try{
fileManager.accessSync('/local')
NODE_ENV = 'dev';
}catch(e){}
if( NODE_ENV === 'pro' ){
constants.host = 'https://qxapi.qingxiao.online/daka';
constants.host2 = 'https://wx.m.shangjiadao.cn';
}else{
constants.host = 'https://clock.wp53.cn';
constants.host2 = 'https://test.wp53.cn';
}
console.log(constants,'dasssssssssdadsa')
// let NODE_ENV = 'pro';
// const fileManager = wx.getFileSystemManager();
// try{
// fileManager.accessSync('/local')
// NODE_ENV = 'dev';
// }catch(e){}
// if( NODE_ENV === 'pro' ){
// constants.host = 'https://qxapi.qingxiao.online/daka';
// constants.host2 = 'https://wx.m.shangjiadao.cn';
// }else{
// constants.host = 'https://clock.wp53.cn';
// constants.host2 = 'https://test.wp53.cn';
// }
export {
constants
}
\ No newline at end of file
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