Compare commits

...

2 Commits

Author SHA1 Message Date
006821188d fix : site 2025-08-05 18:04:43 +08:00
46a305ffe5 fix : api return aop 2025-08-05 17:59:53 +08:00
2 changed files with 6 additions and 4 deletions

View File

@@ -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;
} }

View File

@@ -11,6 +11,7 @@ declare(strict_types=1);
namespace App\Service\Api\System; namespace App\Service\Api\System;
use App\Cache\Redis\Api\SiteCache; use App\Cache\Redis\Api\SiteCache;
use App\Constants\Common\SiteCode;
use App\Extend\SystemUtil; use App\Extend\SystemUtil;
use App\Model\Site; use App\Model\Site;
use App\Service\Api\BaseService; use App\Service\Api\BaseService;
@@ -36,6 +37,7 @@ class SiteListService extends BaseService
$query->where('name', 'like', "%$name%"); $query->where('name', 'like', "%$name%");
}) })
// ->where('name', 'like', '%'.$this->request->input('search_value').'%') // ->where('name', 'like', '%'.$this->request->input('search_value').'%')
->where('is_del',SiteCode::SITE_NO_DEL)
->paginate($limit) ->paginate($limit)
->toArray(); ->toArray();