14 Star 55 Fork 26

a07061625 / swooleyaf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
apidoc_header.md 557 Bytes
一键复制 编辑 原始数据 按行查看 历史

接口签名

说明

  • 所有接口都必须设置接口签名,且每个签名值只能使用一次
  • 签名支持从请求头和GET请求参数获取,优先从请求头获取
  • 签名对应的请求头为Sy-Sign
  • 签名对应的GET请求参数为_sign

算法

//签名随机字符串,6位长度字符串,小写字母+数字随机组合
$signNonce = 'sdfes2';
//签名秒级时间戳
$signTime = time();
//签名密钥,固定
$signSecret = 'r2n2uyactaw9tiniyk';
$sign = $signNonce . $signTime . md5($signNonce . $signSecret . $signTime);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/a07061625/swooleyaf.git
git@gitee.com:a07061625/swooleyaf.git
a07061625
swooleyaf
swooleyaf
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891