简易验签方案

作者: 分类: php 时间: 2026-01-05 评论: 暂无评论
$key      = QiyuKey::APPKEY;
$now      = time();
$post     = [
    'appKey' => $key,
    'time'   => $now,
];
$checksum = sha1(QiyuKey::APPSECRET . md5(json_encode($post)) . $now);
$url      = "https://xxx.com/v2/staff/list/new?appKey={$key}&time={$now}&checksum={$checksum}";
$ret      = self::httpPost($url, $post);
标签: none

订阅本站(RSS)