|
@@ -2,16 +2,29 @@
|
|
namespace app\api\controller;
|
|
namespace app\api\controller;
|
|
|
|
|
|
use app\common\controller\Api;
|
|
use app\common\controller\Api;
|
|
|
|
+use app\utils\LogUtil;
|
|
use think\Db;
|
|
use think\Db;
|
|
use addons\epay\library\Service;
|
|
use addons\epay\library\Service;
|
|
|
|
+use think\Request;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 订单支付回调
|
|
* 订单支付回调
|
|
*/
|
|
*/
|
|
class Notify extends Api
|
|
class Notify extends Api
|
|
{
|
|
{
|
|
|
|
+ // 日志模块名称
|
|
|
|
+ const LOG_MODULE = 'Notify';
|
|
protected $noNeedLogin = ['*'];
|
|
protected $noNeedLogin = ['*'];
|
|
protected $noNeedRight = ['*'];
|
|
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(){
|
|
public function recharge_notify_base(){
|
|
|
|
|