@
lihongjie0209 @
2pang @
chatfeed 改成下面这样,一直错误,提示
Parse error: syntax error, unexpected '$payload' (T_VARIABLE)
$path = "/orders?status=live";
$nonce = md5(time() . mt_rand(0,1000));
$dt = new DateTime('UTC');
$date = $dt->format('D, d M Y H:i:s \G\M\T');
$api_secret1 = 'xxxx'
$payload = ["#{$path}","#{$date}","#{$nonce}"];
$signature = hash_hmac("SHA1", $payload,$api_secret1, true);
$signature_encoded = $this->base64url_encode($signature);