Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-template-qqm

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-template-qqm - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

20

app/apis/apiUtils.js
/*
* @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,

8

app/config/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc