Commit 597653eb authored by zhangdongying's avatar zhangdongying

feat: 去除字段限制

parent 321075ff
...@@ -96,7 +96,7 @@ class AppOperateLogService ...@@ -96,7 +96,7 @@ class AppOperateLogService
* 添加用户操作日志 * 添加用户操作日志
* *
* @param string $tableName 表名 * @param string $tableName 表名
* @param string $recordId 记录ID * @param string|int $recordId 记录ID
* @param string $operateType 操作类型 * @param string $operateType 操作类型
* @param string|array|Model $param 参数 * @param string|array|Model $param 参数
* @param string|array|Model $before 修改之前数据 * @param string|array|Model $before 修改之前数据
...@@ -107,7 +107,7 @@ class AppOperateLogService ...@@ -107,7 +107,7 @@ class AppOperateLogService
*/ */
public function addUserOperateLog( public function addUserOperateLog(
string $tableName, string $tableName,
string $recordId, $recordId,
string $operateType, string $operateType,
$param, $param,
$before, $before,
...@@ -123,7 +123,7 @@ class AppOperateLogService ...@@ -123,7 +123,7 @@ class AppOperateLogService
$this->getClientIp(), $this->getClientIp(),
make(RequestInterface::class)->url(), make(RequestInterface::class)->url(),
$tableName, $tableName,
$recordId, (string)$recordId,
$operateType, $operateType,
$this->formatSourceData($param), $this->formatSourceData($param),
$this->formatSourceData($before), $this->formatSourceData($before),
...@@ -137,7 +137,7 @@ class AppOperateLogService ...@@ -137,7 +137,7 @@ class AppOperateLogService
* *
* @param string $action 方法全路径 * @param string $action 方法全路径
* @param string $tableName 表名 * @param string $tableName 表名
* @param string $recordId 记录ID * @param string|int $recordId 记录ID
* @param string $operateType 操作类型 * @param string $operateType 操作类型
* @param string|array|Model $param 参数 * @param string|array|Model $param 参数
* @param string|array|Model $before 修改之前数据 * @param string|array|Model $before 修改之前数据
...@@ -149,7 +149,7 @@ class AppOperateLogService ...@@ -149,7 +149,7 @@ class AppOperateLogService
public function addSystemOperateLog( public function addSystemOperateLog(
string $action, string $action,
string $tableName, string $tableName,
string $recordId, $recordId,
string $operateType, string $operateType,
$param, $param,
$before, $before,
...@@ -165,7 +165,7 @@ class AppOperateLogService ...@@ -165,7 +165,7 @@ class AppOperateLogService
'', '',
$action, $action,
$tableName, $tableName,
$recordId, (string)$recordId,
$operateType, $operateType,
$this->formatSourceData($param), $this->formatSourceData($param),
$this->formatSourceData($before), $this->formatSourceData($before),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment