提交 b6de8622 authored 作者: 吴强's avatar 吴强
/** @module services/update */ /** @module services/update */
import DeviceInfo from 'react-native-device-info'; import DeviceInfo from 'react-native-device-info';
import post from '../utils/post'; import post from '../utils/post';
import { encrypt } from '../utils/helper';
import config from '../utils/config'; import config from '../utils/config';
/** /**
...@@ -38,7 +39,7 @@ export const checkUpdate = async () => { ...@@ -38,7 +39,7 @@ export const checkUpdate = async () => {
const result = await post(`${config.updateContextPath}/api/app/user/apps/check`, { const result = await post(`${config.updateContextPath}/api/app/user/apps/check`, {
name: config.productId, name: config.productId,
version: DeviceInfo.getVersion(), version: DeviceInfo.getVersion(),
token: tokenId, token: encrypt(tokenId),
}, {}, {}, false); }, {}, {}, false);
result.tokenId = tokenId; result.tokenId = tokenId;
return result; return result;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论