mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
fix: 兼容加密bug问题处理
This commit is contained in:
parent
20496b2edb
commit
edfb32647b
@ -52,9 +52,10 @@ class WebApi
|
|||||||
|
|
||||||
// 加密返回内容
|
// 加密返回内容
|
||||||
if ($encrypt['client_type'] === 'pgp' && $content = $response->getContent()) {
|
if ($encrypt['client_type'] === 'pgp' && $content = $response->getContent()) {
|
||||||
$response->setContent(json_encode([
|
$content = Doo::pgpEncryptApi($content, $encrypt['client_key']);
|
||||||
'encrypted' => Doo::pgpEncryptApi($content, $encrypt['client_key'])
|
if($content){
|
||||||
]));
|
$response->setContent(json_encode([ 'encrypted' => $content ]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user