>获取JS访问API接口参数,该接口请勿使用前端代码访问 ~~~[api] get:/index.php/api/Apiget/get_param *string:appid=""#appid参数 *string:appsecret=""#秘钥 *string:token=""#站点token <<< success { "err": 0, "data": { "appid": "50fb0e2cde242fb428e5d35c719e82f3bfca8dcf", "timestamp": 1584418592, "nonceStr": "IYI0wK", "signature": "d3c512eef5bc25d09b767e75b8f5eff3bd91bec8", "interval": 7200 } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 | 详情 | | --- | --- | | appid| appid | | timestamp| 时间戳 | | nonceStr| 随机字符串 | | signature| 签名数据 | | interval| 有效时间间隔,单位秒 | >获取JS访问API接口参数失效后,通过该接口换取新的参数 ~~~[api] get:/index.php/api/Apiget/get_param_change *string:appid=""#appid参数 *int:timestamp=""#失效时间戳 *string:nonceStr=""#失效随机字符 *string:signature=""#失效签名 <<< success { "err": 0, "data": { "appid": "50fb0e2cde242fb428e5d35c719e82f3bfca8dcf", "timestamp": 1584418592, "nonceStr": "IYI0wK", "signature": "d3c512eef5bc25d09b767e75b8f5eff3bd91bec8", "interval": 7200 } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 | 详情 | | --- | --- | | appid| appid | | timestamp| 时间戳 | | nonceStr| 随机字符串 | | signature| 签名数据 | | interval| 有效时间间隔,单位秒 |