hook配置
This commit is contained in:
parent
12d3a4b05a
commit
716d1e4d63
13
application/admin/behavior/OrderChangeAfter.php
Normal file
13
application/admin/behavior/OrderChangeAfter.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace app\admin\behavior;
|
||||
|
||||
class OrderChangeAfter
|
||||
{
|
||||
//订单状态变更后的处理逻辑
|
||||
public function run(&$response)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
12
application/admin/behavior/OrderLog.php
Normal file
12
application/admin/behavior/OrderLog.php
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace app\admin\behavior;
|
||||
|
||||
class OrderLog
|
||||
{
|
||||
//记录订单日志
|
||||
public function run(&$response)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -15,4 +15,9 @@ return [
|
|||
'app_end' => [
|
||||
'app\\admin\\behavior\\AdminLog',
|
||||
],
|
||||
|
||||
'order_change' => [
|
||||
'app\\admin\\behavior\\OrderLog',
|
||||
'app\\admin\\behavior\\OrderChangeAfter',
|
||||
],
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user