修改日志名称

This commit is contained in:
2020-08-23 22:15:16 +08:00
parent 608d0d5993
commit bec648912c
5 changed files with 23 additions and 15 deletions

View File

@@ -85,7 +85,7 @@ class UserController extends Controller
$res = $this->checkSign($request);
$inputdata['jiemi'] = $res;
$log = $this->createLog($request->url(), 'POST', $inputdata, 'grant'); //添加日志
$log = $this->createLog($request->url(), 'POST', $inputdata, 'query'); //添加日志
if (is_string($res)) {
return $this->error($res, $log);
@@ -121,7 +121,7 @@ class UserController extends Controller
$inputdata = $request->all();
$res = $this->checkSign($request);
$inputdata['jiemi'] = $res;
$log = $this->createLog($request->url(), 'POST', $inputdata, 'grant'); //添加日志
$log = $this->createLog($request->url(), 'POST', $inputdata, 'destroy'); //添加日志
if (is_string($res)) {
return $this->error($res, $log);
@@ -156,7 +156,7 @@ class UserController extends Controller
$res = $this->checkSign($request);
$inputdata['jiemi'] = $res;
//插入日志表
$log = $this->createLog($request->url(), 'POST', $inputdata, 'self'); //添加日志
$log = $this->createLog($request->url(), 'POST', $inputdata, 'freezecoupon'); //添加日志
if (!is_array($res)) {
return $this->error($res, $log);