Skip to content

Commit

Permalink
feat: 回滚_isRsaDecode内容
Browse files Browse the repository at this point in the history
  • Loading branch information
linkunyuan committed Jun 13, 2024
1 parent e9ecaef commit 7d0c96a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/HttpController/BaseControllerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,7 @@ protected function getLanguageConstants()
protected function _isRsaDecode($input = null)
{
$input = is_null($input) ? $this->input : $input;
$mode = 'model_' . get_mode('mode');
$Package = $mode('Package');
$package = $Package->cacheGet($input['pkgid']);
return ! empty($input[config('RSA.key')])
|| is_env('dev')
// 某些媒体或渠道包,无法加密通讯
|| ! empty(get_channel_byid($package['chid'] ?? 0, 'no_encrypt'));
return ! empty($input[config('RSA.key')]) || is_env('dev');
}

/**
Expand Down

0 comments on commit 7d0c96a

Please sign in to comment.