提交 e6d40b8f authored 作者: 吴强's avatar 吴强

去掉调试用控制台信息

上级 931c705b
...@@ -2,7 +2,7 @@ import { AsyncStorage } from 'react-native'; ...@@ -2,7 +2,7 @@ import { AsyncStorage } from 'react-native';
import { NavigationActions } from 'react-navigation'; import { NavigationActions } from 'react-navigation';
// import codePush from 'react-native-code-push'; // import codePush from 'react-native-code-push';
import { checkUpdate } from '../services/update'; import { checkUpdate } from '../services/update';
import { update } from '../native/Updater'; import { addUpdaterDownloadingCallback, update, addUpdaterDownloadedCallback } from '../native/Updater';
import config from '../utils/config'; import config from '../utils/config';
import { encrypt } from '../utils/helper'; import { encrypt } from '../utils/helper';
...@@ -19,7 +19,16 @@ export default { ...@@ -19,7 +19,16 @@ export default {
if (action === 'update') { if (action === 'update') {
const token = encrypt(tokenId); const token = encrypt(tokenId);
// console.info(`${config.updateContextPath}/resource/${token}/${encodeURIComponent(deploymentInfo.uri)}`); // console.info(`${config.updateContextPath}/resource/${token}/${encodeURIComponent(deploymentInfo.uri)}`);
yield call(update, `${config.updateContextPath}/resource/${token}/${encodeURIComponent(deploymentInfo.uri)}`, () => { console.info('xxx'); }); addUpdaterDownloadingCallback((event) => {
console.log(event);
});
addUpdaterDownloadedCallback((event) => {
console.log('结束');
console.log(event);
});
console.log('开始');
yield call(update, `${config.updateContextPath}/resource/${token}/${encodeURIComponent(deploymentInfo.uri)}`);
console.log('结束结束结束结束结束结束结束结束结束结束');
} }
} catch (e) { } catch (e) {
console.log(e); // eslint-disable-line no-console console.log(e); // eslint-disable-line no-console
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论