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

16次阅读

共计 1518 个字符,预计需要花费 4 分钟才能阅读完成。

这个是之前帮敌人做的一个海南七星玩法的五分非常彩网站零碎源码我的项目, 当初分享进去给大家一起学习交换. 我的扣 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);
    }
}

正文完
 0