wxlite-plus / mp-req Goto Github PK
View Code? Open in Web Editor NEW基于wx.request的高级封装
License: MIT License
基于wx.request的高级封装
License: MIT License
只有在需要跟微信(后端)接口打交道的时候,才需要有效的session_key,那么后端肯定知道什么时候过期了,因为微信后端会告诉我们,所以我们把过期的判断交给后端,只要后端被告知过期了
这里有一点没看明白,请问后端如何判断session过期?感谢答疑
麻烦大神写一个简单点的使用说明,我看了两遍还是没看懂怎么用?
不用解释实现原理,暴露给用户的应该是简单的使用说明。
想知道怎么实现的,会自己读源码的。
恳求作者出一个简单点儿的使用文档
因为后端json统一返回状态码200,json中包含 code, message, data, time 四个参数,code不等于0则代表错误代码,message代表错误消息。
怎么调整代码呢?看了看封装的是请求头的statusCode
比如 application/json 这种,有没有封装呢?
看了好几遍文档,这是默认所有的接口都需要登录吗?只要检测到没有 sessionId 都让去登录是吗?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.