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

dd

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