فهرست منبع

refactor(log): 统一使用 think\Log 替代自定义日志类

- 移除了对 sixdec/haigouquan 自定义 Log 类的依赖
- 移除了对 six-shop/lakala 自定义 Log 类的依赖
- 移除了对 six-shop/wechat 自定义 Log 类的依赖
- 所有模块统一引入 think\Log 来记录日志
- 删除了三个模块中冗余的 Log 类定义文件
- 确保日志记录行为一致性和系统简洁性
runphp 3 ماه پیش
والد
کامیت
30e4837a61
3فایلهای تغییر یافته به همراه2 افزوده شده و 17 حذف شده
  1. 0 15
      src/Log.php
  2. 1 1
      src/Service/NotifyService.php
  3. 1 1
      src/Service/TransactionService.php

+ 0 - 15
src/Log.php

@@ -1,15 +0,0 @@
-<?php
-declare(strict_types=1);
-
-namespace SixShop\Lakala;
-
-use SixShop\System\ExtensionManager;
-use think\App;
-
-class Log extends \SixShop\System\Log
-{
-    public function __construct(App $app, private ExtensionManager $extensionManager)
-    {
-        parent::__construct($app, $extensionManager, Extension::EXTENSION_ID);
-    }
-}

+ 1 - 1
src/Service/NotifyService.php

@@ -3,7 +3,7 @@ declare(strict_types=1);
 namespace SixShop\Lakala\Service;
 
 use SixShop\Lakala\Config;
-use SixShop\Lakala\Log;
+use think\Log;
 use SixShop\Lakala\OpenAPISDK\V3\Api\LakalaNotifyApi;
 use SixShop\Lakala\OpenAPISDK\V3\Model\ModelTradeNotify;
 use SixShop\Lakala\PaymentProvider;

+ 1 - 1
src/Service/TransactionService.php

@@ -3,7 +3,7 @@ declare(strict_types=1);
 
 namespace SixShop\Lakala\Service;
 
-use SixShop\Lakala\Log;
+use think\Log;
 use SixShop\Lakala\OpenAPISDK\V3\Api\LakalaApi;
 use SixShop\Lakala\OpenAPISDK\V3\Api\QueryTradequeryApi;
 use SixShop\Lakala\OpenAPISDK\V3\Api\TransPreorderApi;