fix : api return aop
This commit is contained in:
@@ -56,10 +56,10 @@ class ApiReturnAspect extends AbstractAspect
|
|||||||
$this->writeResponseLog(json_encode($result));
|
$this->writeResponseLog(json_encode($result));
|
||||||
|
|
||||||
//正式服加密 测试服不做处理
|
//正式服加密 测试服不做处理
|
||||||
if (SystemUtil::checkProEnv()) {
|
// if (SystemUtil::checkProEnv()) {
|
||||||
$cryptoFactory = $this->CryptoFactory->cryptoClass('api', json_encode($result['data']));
|
// $cryptoFactory = $this->CryptoFactory->cryptoClass('api', json_encode($result['data']));
|
||||||
$result['data'] = $cryptoFactory->encrypt();
|
// $result['data'] = $cryptoFactory->encrypt();
|
||||||
}
|
// }
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user