We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
可以追加PHP-DEMO吗
The text was updated successfully, but these errors were encountered:
这个我支持···搞个PHP SDK····
Sorry, something went wrong.
暂无计划。
PHP签名验证:
protected function paramsSign($params): string { $secretKey = config('custom.baidu.secret_key'); $json = trim(json_encode($params)); $str_padded = trim(base64_encode($json)); if (strlen($str_padded) % 16) { $str_padded = str_pad($str_padded, strlen($str_padded) + 16 - strlen($str_padded) % 16, "\0"); } return strtoupper(bin2hex(openssl_encrypt($str_padded, 'AES-128-CBC', substr($secretKey, 0, 16), OPENSSL_NO_PADDING, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"))); }
No branches or pull requests
可以追加PHP-DEMO吗
The text was updated successfully, but these errors were encountered: