|
|
@@ -0,0 +1,33 @@
|
|
|
+<?php
|
|
|
+namespace App\Http\Model;
|
|
|
+
|
|
|
+use Illuminate\Database\Eloquent\Model;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Class St_country
|
|
|
+ * @package App\Sports\Model
|
|
|
+ * 国家 地区 关系
|
|
|
+ */
|
|
|
+class St_set_sports_record extends Model
|
|
|
+{
|
|
|
+
|
|
|
+ protected $table = 'st_set_sports_record';
|
|
|
+ public $timestamps = false;
|
|
|
+
|
|
|
+
|
|
|
+ //写 请求 数据 日志记录
|
|
|
+ public static function setSportsRecord($title,$obt){
|
|
|
+ $set = 0;
|
|
|
+ if(!empty($title) and !empty($obt)){
|
|
|
+ $setData = [
|
|
|
+ 'title'=>$title,
|
|
|
+ 'data'=>$obt,
|
|
|
+ 'add_time'=>date('Y-m-d H:i:s'),
|
|
|
+ ];
|
|
|
+ $set = self::insertGetId($setData);
|
|
|
+ }
|
|
|
+
|
|
|
+ return $set;
|
|
|
+
|
|
|
+ }
|
|
|
+}
|