GameEgame.php 522 B

12345678910111213141516171819
  1. <?php
  2. namespace App\Models;
  3. class GameEgame extends BaseModel {
  4. public $num=5;//开奖号码个数
  5. protected $table = "game_egame";
  6. public $timestamps = false;
  7. function getLog($list=20,$fild,$order,$where=''){
  8. $data=$this->orderBy($fild,$order);
  9. if(!empty($where)&&is_array($where)){
  10. $data = $data->where($where);
  11. }
  12. $data = $data->paginate($list);
  13. if(!$data){
  14. return -5040000622;//没有开奖数据
  15. }
  16. return $data->toArray();
  17. }
  18. }