电销机器人开发引导
private static function generateSign (String $appKey, String $appSecret,String $date)
{
if (function_exists( hash_hmac )) {
$stringToSign = $appKey . \n . $date;
return base64_encode(hash_hmac( sha1 , $stringToSign, $appSecret, true));
}
}