| 123456789101112131415161718192021222324252627 |
- <?php
- namespace App\Sports\Model;
- use \System\Model;
- /**
- * Class Account
- * @package App\Sports\Model
- * 用户账号
- */
- class St_zq_odds extends Model
- {
- protected $table = 'st_zq_odds';
- /**
- * @param array $where 条件
- * @param string $select 字段
- * @param string $sort 排序字段
- * @param string $orderby 排序方式
- * @return mixed
- * 获取赔率数据
- */
- public static function getOddsData($where=[],$select='id',$sort='id',$orderby='asc'){
- $oddsData = self::select($select)->where($where)->groupby("match_id","type")->get();
- return $oddsData;
- }
- }
|