readme.md 810 Bytes

密码验证 查看链接机器 adb devices

adb reverse tcp:8081 tcp:8081

npm start // xnTalk 生产 var config = { apiUrl:'https://api.xiniunet.com/router?', uploadUrl:'http://192.168.1.30:9010/backend/fileUpload.do', app_key:'FEDA506D38D8E930626E850139E74E0C', secret:'9019951CC31D86A31D2E911D4BE51142', };

if(global.env=="xnTalkDev"){ config.apiUrl='https://api-dev.xiniunet.com/router?' }

if(global.env=="xnTalkTest"){ config.apiUrl='https://api-test.xiniunet.com/router?' } config.apiUrl='https://api-test.xiniunet.com/router?' console.log(config)

module.exports = config;

   //获取环境
    NativeModules.system.getMode().then((result) => {
         global.env=result;
        }
    ).catch((error) => {
        console.log(error)
    });