乐趣区

关于源码:海南七星玩法的五分十分彩网站系统源码项目解析

这个是之前帮敌人做的一个海南七星玩法的五分非常彩网站零碎源码我的项目, 当初分享进去给大家一起学习交换. 我的扣 2607788043

登陆控制器

namespace Portal\Controller;

class UserController {

    protected $user_model;


    public function __construct() {parent::__construct();
        $this->check_login();
//        $this->uid = session('uid');
//        $this->user_login = session('user_login');
//        $this->user_model = D("Portal/User");
//        $this->user = $this->user_model->find($this->uid);
//        $this->assign('user', $this->user);

    }

    public function index(){$this->display();
    }

}
namespace Portal\Controller;

use Common\Controller\HomebaseController;

class DrawListController extends HomebaseController {

    protected $user_model;
    
    public function __construct() {parent::__construct();
         $this->check_login();
        $this->user_model = M('user');// 打款凭证
    }
    public function Index(){$this->display();
    }
    public function GetLotteryResult(){header('Content-type: application/json');
        $start=$_GET['StartDate'];
        $end=$_GET['EndDate'];
        $where['time']=array('between',strtotime($start."00:00:00").','.strtotime($end."23:59:59"));
        $count=M('data')->where($where)->count();
        $list=M('data')->where($where)->limit((($_GET['pageIndex']-1)*20).',20')->order('time desc')->select();
        $PageCount=ceil($count/20);
        $list2=array();
        foreach ($list as $key => $value) {$list2[$key][CreateDt]=date('Y-m-d H:i:s',$value['time']);
            $list2[$key][DrawDt]=date('Y-m-d H:i:s',$value['time']);
            $list2[$key][OpenDt]=date('Y-m-d H:i:s',$value['time']);
            $list2[$key][ID]=$value['number'];
            $list2[$key][PeriodsNumber]=$value['number'];
            $list2[$key][ResultNumber]=$value['data'];
        }
        $data['list']=$list2;
        $data['PageCount']=$PageCount;
        echo json_encode($data);
    }
}
退出移动版