react-native-template-qqm
Advanced tools
Comparing version 0.1.2 to 0.1.3
/* | ||
* @Author: Lockie | ||
* @Date: 2017-03-27 11:24:40 | ||
* @Last Modified by: Lockie | ||
* @Last Modified time: 2017-06-02 17:34:57 | ||
* @Last Modified by: laijie | ||
* @Last Modified time: 2017-06-06 18:20:49 | ||
*/ | ||
@@ -96,18 +96,2 @@ import { createAction } from 'redux-actions'; | ||
//可以在这里对response做一些通用操作 | ||
if (response.status && response.status !== 0) { | ||
if (response.status === -103) { | ||
//重新登录 | ||
yield put(createAction('fetch/logout')()); | ||
} else if (ERR_STATUS.indexOf(response.status) < 0) { | ||
//tip处理 | ||
yield put(createAction('TIP_ANIMATED')({ des: response.des })); | ||
} | ||
} | ||
//用户信息刷新 | ||
if (response.version && response.version !== -1 && req.payload) { | ||
const { token, userId } = req.payload; | ||
if (token && userId) { | ||
yield put(createAction('api/user/getUserInfo/request')({ token, userId, version: -1 })); | ||
} | ||
} | ||
yield put(createAction(actionNames.success)({ | ||
@@ -114,0 +98,0 @@ req: req.payload || null, |
@@ -5,3 +5,3 @@ /* | ||
* @Last Modified by: Lockie | ||
* @Last Modified time: 2017-05-05 18:25:31 | ||
* @Last Modified time: 2017-06-06 18:20:13 | ||
*/ | ||
@@ -12,5 +12,7 @@ | ||
export { | ||
const config = { | ||
API_URL, | ||
PUB_API_URL | ||
}; | ||
} | ||
export default config; |
{ | ||
"name": "react-native-template-qqm", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "react-native template for qqm", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27945
897