$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);
php
简易验签方案
$key = QiyuKey::APPKEY; $now = time(); $post = [ 'appKey' => $key, 'time' => $now, ]; $checksum = sha1(QiyuKey::APPSECRET . md5(json_encode($post)) . $now); $url = "https://xxx.com…