refactor(license): replace copyright endpoints with local system metadata

Made-with: Cursor
This commit is contained in:
apple
2026-04-29 17:16:59 +08:00
parent 06ed25ad4d
commit f89f33c50c
5 changed files with 127 additions and 52 deletions

View File

@@ -9,6 +9,7 @@ use app\services\order\StoreOrderRefundServices;
use app\services\order\StoreOrderServices;
use app\services\other\CityAreaServices;
use app\services\order\supplier\SupplierOrderServices;
use app\services\system\LocalCopyrightService;
use app\services\supplier\SystemSupplierServices;
use app\services\system\SystemMenusServices;
use think\db\exception\DataNotFoundException;
@@ -253,12 +254,6 @@ class Common extends AuthController
*/
public function getCopyright()
{
try {
$copyright = $this->__z6uxyJQ4xYa5ee1mx5();
} catch (\Throwable $e) {
$copyright = ['copyrightContext' => '', 'copyrightImage' => ''];
}
$copyright['version'] = get_crmeb_version();
return $this->success($copyright);
return $this->success(app()->make(LocalCopyrightService::class)->getCopyright());
}
}