| 1234567891011121314151617181920212223242526 |
- <?php
- namespace App\Models;
- class Egame_info extends BaseModel {
- protected $table = "egame_info";
- public $timestamps = false;
- protected function addNewMatch($data){
- if(!isset($data['info_identity'])){
- $data['info_identity']=UUID();
- }
- $res=$this->insert($data);
- if(!$res){
- return -9050020422;
- }
- return 1;
- }
- //由期数获取vs队伍
- protected function getVSTeam($info_no){
- $data=$this->where('info_no',$info_no)->first();
- if(!$data){
- return -9023210022;//没有数据
- }
- return $data->toArray();
- }
- }
|