问题描述
在 system.log 文件中,我收到一个错误:[2021-04-27 10:35:21] report.CRITICAL:空或没有提供私钥 [] []
有人对此有想法吗?请指导。
拉什
解决方法
根据您的错误,几乎没有细节可以继续,唉,我在谷歌搜索中发现了这个异常:
https://github.com/open-pay/openpay-php/blob/master/data/OpenpayApiConnector.php#L45
$myApiKey = Openpay::getApiKey();
if (!$myApiKey) {
throw new OpenpayApiAuthError("Empty or no Private Key provided");
} else if (!preg_match('/^sk_[a-z0-9]{32}$/i',$myApiKey)) {
throw new OpenpayApiAuthError("Invalid Private Key '".$myApiKey."'");
}
我认为这表明您正在使用一个模块与 OpenPay 的 API ( maybe this one? ) 进行交互,在这种情况下,您可能需要仔细检查您的私钥是否已在后端配置中全部整理完毕:>