1.2.6 • Published 1 year ago
请求加密解密
V1.0.2版本方法
方法名:setConfig <配置设置>
publicKeyStr:公钥 <必填>
privateKeyStr:私钥 <必填>
isDebug:调试模式 <模式false>
方法名:encrypt <公钥加密>
param:加密参数 <必填>
pubKey:公钥 <非必填>
方法名:decrypt <私钥解密>
data:接口返回的响应体 <必填>
priKey:私钥 <非必填>
方法名:setDebugHeader <调试模式header设置>
header:请求体header
V1.0.5版本方法
ignore: 接口白名单。在setConfig方法里面设置
方法名:setVueRequest <vue-axios 请求头设置>
req:请求头 <必填>
pubKey:公钥 <非必填>
方法名:setVueResponse <vue-axios 响应体设置>
res:响应体 <必填>
priKey:私钥 <非必填>
方法名:setMiniRequest <小程序请求设置>
option:小程序请求对象 <必填>
option.pubKey:公钥 <非必填 - 对象自定义属性>
option.priKey:私钥 <非必填 - 对象自定义属性>
V1.0.5版本方法
新增白名单属性:ignore