修改log字段
This commit is contained in:
parent
bfc4904379
commit
df987f7a78
7
application/http/middleware/LogRecord.php
Normal file
7
application/http/middleware/LogRecord.php
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Created by PhpStorm.
|
||||||
|
* User: Administrator
|
||||||
|
* Date: 2019/1/17
|
||||||
|
* Time: 18:06
|
||||||
|
*/
|
7
application/model/LogRecordModel.php
Normal file
7
application/model/LogRecordModel.php
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Created by PhpStorm.
|
||||||
|
* User: Administrator
|
||||||
|
* Date: 2019/1/17
|
||||||
|
* Time: 18:09
|
||||||
|
*/
|
7
application/service/LogService.php
Normal file
7
application/service/LogService.php
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Created by PhpStorm.
|
||||||
|
* User: Administrator
|
||||||
|
* Date: 2019/1/17
|
||||||
|
* Time: 18:06
|
||||||
|
*/
|
@ -37,6 +37,7 @@ class Log extends Migrator
|
|||||||
->addColumn('controller', 'string',['limit' => 20, 'default'=>'','comment'=>'控制器'])
|
->addColumn('controller', 'string',['limit' => 20, 'default'=>'','comment'=>'控制器'])
|
||||||
->addColumn('action', 'string',['limit' => 20, 'default'=>'','comment'=>'方法'])
|
->addColumn('action', 'string',['limit' => 20, 'default'=>'','comment'=>'方法'])
|
||||||
->addColumn('option', 'string',['limit' => 50, 'default'=>'','comment'=>'操作'])
|
->addColumn('option', 'string',['limit' => 50, 'default'=>'','comment'=>'操作'])
|
||||||
|
->addColumn('method', 'string',['limit' => 15, 'default'=>'','comment'=>'请求方法'])
|
||||||
->addColumn('created_at', 'timestamp', [ 'default' => 'CURRENT_TIMESTAMP','comment' => '更新时间'])
|
->addColumn('created_at', 'timestamp', [ 'default' => 'CURRENT_TIMESTAMP','comment' => '更新时间'])
|
||||||
->create();
|
->create();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user