123456789101112131415161718 |
- <?php
- namespace app\common\model;
- use think\Model;
- class Logs extends Model
- {
- /**
- * 添加日志
- */
- public static function addLog($title, $comment)
- {
- self::create(['title' => $title, 'comment' => $comment, 'create_time' => date('Y-m-d H:i:s')]);
- }
- }
|