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

Merge branch 'master' of ssh://192.168.1.116:29418/bolan-root/frontend/manager-app-sz into wq

# Conflicts: # android/app/src/main/java/com/bolanmanagerapp/MainApplication.java # src/utils/config.js
上级 b6de8622
...@@ -111,7 +111,7 @@ android { ...@@ -111,7 +111,7 @@ android {
targetSdkVersion 25 targetSdkVersion 25
multiDexEnabled true multiDexEnabled true
versionCode 1 versionCode 1
versionName "1.0.1" versionName "1.0.2"
ndk { ndk {
abiFilters "armeabi-v7a", "x86" abiFilters "armeabi-v7a", "x86"
} }
......
...@@ -53,7 +53,11 @@ export default { ...@@ -53,7 +53,11 @@ export default {
datasourceName: 'QueryfwTable', datasourceName: 'QueryfwTable',
}; };
const result = yield call(getData, coordinate, { pst: size, psz: 10, params: { pFWDiZhi } }); const result = yield call(getData, coordinate, { pst: size, psz: 10, params: { pFWDiZhi } });
console.info('result');
console.info(result);
const meta = yield call(getMeta, coordinate); const meta = yield call(getMeta, coordinate);
console.info('meta');
console.info(meta);
yield put({ type: 'setMetas', payload: meta }); yield put({ type: 'setMetas', payload: meta });
for (const row of result) { for (const row of result) {
yield put({ type: 'addHouse', payload: row }); yield put({ type: 'addHouse', payload: row });
......
...@@ -2,6 +2,9 @@ import { AsyncStorage } from 'react-native'; ...@@ -2,6 +2,9 @@ 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 config from '../utils/config';
import { encrypt } from '../utils/helper';
export default { export default {
namespace: 'welcome', namespace: 'welcome',
...@@ -11,8 +14,14 @@ export default { ...@@ -11,8 +14,14 @@ export default {
*init(ignored, { put, call }) { *init(ignored, { put, call }) {
try { try {
// yield call(codePush.sync); // yield call(codePush.sync);
const promise = yield call(checkUpdate); const result = yield call(checkUpdate);
console.info(promise); const { action, deploymentInfo, tokenId } = result;
if (action === 'update') {
const token = encrypt(tokenId);
console.info(update);
// console.info(`${config.updateContextPath}/resource/${token}/${encodeURIComponent(deploymentInfo.uri)}`);
yield call(update, `${config.updateContextPath}/resource/${token}/${encodeURIComponent(deploymentInfo.uri)}`, () => { console.info('xxx'); });
}
} catch (e) { } catch (e) {
console.log(e); // eslint-disable-line no-console console.log(e); // eslint-disable-line no-console
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论