hook配置

This commit is contained in:
xman 2025-03-03 13:39:49 +08:00
parent 12d3a4b05a
commit 716d1e4d63
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,13 @@
<?php
namespace app\admin\behavior;
class OrderChangeAfter
{
//订单状态变更后的处理逻辑
public function run(&$response)
{
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace app\admin\behavior;
class OrderLog
{
//记录订单日志
public function run(&$response)
{
}
}

View File

@ -15,4 +15,9 @@ return [
'app_end' => [
'app\\admin\\behavior\\AdminLog',
],
'order_change' => [
'app\\admin\\behavior\\OrderLog',
'app\\admin\\behavior\\OrderChangeAfter',
],
];