- 在多个控制器和逻辑类中,为相关函数增加了admin_id参数 - 更新了WarehouseProductLogic中的多个方法,使其支持记录管理员ID - 修改了ChangeLogLogic和SqlChannelLog函数,增加了admin_id字段
26 lines
625 B
PHP
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();
|
|
}
|
|
}
|