123456789101112131415161718192021222324 |
- <?php
- /*
- * @Author: wang jun
- * @Date: 2021-09-28 11:13:58
- * @Last Modified by: wang jun
- * @Last Modified time: 2021-09-28 13:55:15
- */
- namespace app\index\model;
- use think\Model;
- class useractionrecordmodel extends Model
- {
- protected $table = 't_useractionrecord';
- public function insinfo($arr)
- {
- if (!isset($arr['record_time']) || empty($arr['record_time'])) {
- $arr['record_time'] = date("Y-m-d H:i:s");
- }
- $id = $this->insertGetId($arr);
- return $id;
- }
- }
|