multi-store/app/common/logic/ChangeLogLogic.php
mkm 148e6cf019 refactor(仓储逻辑): 为相关函数增加管理员ID参数
- 在多个控制器和逻辑类中,为相关函数增加了admin_id参数
- 更新了WarehouseProductLogic中的多个方法,使其支持记录管理员ID
- 修改了ChangeLogLogic和SqlChannelLog函数,增加了admin_id字段
2025-01-06 12:04:18 +08:00

26 lines
625 B
PHP

<?php
namespace app\common\logic;
use app\common\model\change_log\ChangeLog;
class ChangeLogLogic extends BaseLogic
{
public function insert($model='',$link_id=0,$nums=0,$pm=0,$url='',$admin_id=0):void
{
$info=\Chance\Log\facades\OperationLog::getLog();
ChangeLog::create([
'model' => $model,
'link_id' => $link_id,
'nums' => $nums,
'pm' => $pm,
'mark' => $info,
'url' => $url,
'admin_id' => $admin_id,
'create_time' => time()
]);
\Chance\Log\facades\OperationLog::clearLog();
}
}