提交 138995ff 编写于 作者: 雪洛's avatar 雪洛

docs: uni-id faq & format unipay

上级 f4744d3c
......@@ -902,3 +902,8 @@ exports.main = async function(event,context) {
}
```
# FAQ
- token数组为什么越来越长
+ 每次登录成功都会新增一个token,并且检查所有token的有效期删除过期token。正常情况下客户端应该判断持久化存储的token是否还在有效期内,如果还有效就直接进入应用,不再执行登录。这样相当于用户的每个设备上都存在一个有效期内的token,云端也是。
\ No newline at end of file
......@@ -52,7 +52,7 @@ const unipay = require('@dcloudio/unipay')
| appId | String | 是 | - | 当前应用在对应支付平台的 appId |
| mchId | String | 是 | - | 商户号 |
| key | String | 是 | - | 支付商户 md5 key |
| pfx | String | Buffer | 使用退款功能必填 | - | 微信支付商户 API 证书,主要用于退款 |
| pfx | String | Buffer | 使用退款功能必填 | 微信支付商户 API 证书,主要用于退款 |
| timeout | Number | 否 | 5000 | 请求超时时间,单位:毫秒 |
| signType | String | 否 | MD5 | 签名类型 |
| sandbox | Boolean | 否 | false | 是否启用沙箱环境 |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册