refactor(license): replace copyright endpoints with local system metadata
Made-with: Cursor
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user