提交 c261c3b5 编写于 作者: M moTzxx

行为日志记录 更新方法

上级 fc58c343
<?php
namespace app\cms\behavior;
use app\common\lib\BaseException;
......
......@@ -198,16 +198,16 @@ function insertCmsOpLogs($opStatus = 0,$opTag = '',
/**
* 获取操作日志
* @param int $video_id
* @param int $op_id
* @param string $opTag 所记录业务日志确定的标签
* 当前定义 ———— "ARTICLE": 文章操作业务;"TODAY":今日赠言业务;"GOODS":商品操作业务
* @return array|PDOStatement|string|\think\Collection
*/
function getCmsOpViewLogs($video_id = 0,$opTag = ''){
function getCmsOpViewLogs($op_id = 0,$opTag = ''){
$logs = Db::name('xcmsLogs l')
->field('l.*,a.user_name')
->join('xadmins a','a.id = l.admin_id')
->where([['tag','=',$opTag],['op_id','=',$video_id]])
->where([['tag','=',$opTag],['op_id','=',$op_id]])
->order('id','desc')
->select();
return isset($logs)?$logs:[];
......
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
</IfModule>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册