Browse Source

更新了一些基础组件

panda 5 months ago
parent
commit
7e15e724d2
1 changed files with 13 additions and 0 deletions
  1. 13 0
      application/api/controller/Notify.php

+ 13 - 0
application/api/controller/Notify.php

@@ -2,16 +2,29 @@
 namespace app\api\controller;
 
 use app\common\controller\Api;
+use app\utils\LogUtil;
 use think\Db;
 use addons\epay\library\Service;
+use think\Request;
+
 /**
  * 订单支付回调
  */
 class Notify extends Api
 {
+    // 日志模块名称
+    const LOG_MODULE = 'Notify';
     protected $noNeedLogin = ['*'];
     protected $noNeedRight = ['*'];
 
+    public function __construct(Request $request = null)
+    {
+        parent::__construct($request);
+        //日志统一写入
+        register_shutdown_function([new LogUtil, 'close']);
+        LogUtil::getInstance('Api/'); //设置日志存入通道
+    }
+
     //人民币充值 异步回调对外方法
     public function recharge_notify_base(){