Merge branch 'dev' of 47.111.118.107:/srv/git/platform into dev

master
zhengyongxing 5 years ago
commit 79198191a7

@ -100,7 +100,7 @@ class PromoteController extends BaseController
$today_start = mktime(0, 0, 0, date('m'), date('d'), date('Y')); $today_start = mktime(0, 0, 0, date('m'), date('d'), date('Y'));
$today_end = mktime(0, 0, 0, date('m'), date('d') + 1, date('Y')) - 1; $today_end = mktime(0, 0, 0, date('m'), date('d') + 1, date('Y')) - 1;
$today_open_server_list = M("server as sv", "tab_") $today_open_server_list = M("ServerNotice as sv", "tab_")
->where( ->where(
array("sv.start_time" => array("BETWEEN", array($today_start, $today_end)), array("sv.start_time" => array("BETWEEN", array($today_start, $today_end)),
"sv.show_status" => 1)) "sv.show_status" => 1))
@ -110,7 +110,7 @@ class PromoteController extends BaseController
->page(1, 20) ->page(1, 20)
->select(); ->select();
$count = M("server", "tab_") $count = M("ServerNotice", "tab_")
->where( ->where(
array("start_time" => array("BETWEEN", array($today_start, $today_end)), array("start_time" => array("BETWEEN", array($today_start, $today_end)),
"show_status" => 1)) "show_status" => 1))
@ -442,7 +442,7 @@ class PromoteController extends BaseController
$map['sv.show_status'] = 1; $map['sv.show_status'] = 1;
$count_map['show_status'] = 1; $count_map['show_status'] = 1;
$open_server_list = M("server as sv", "tab_") $open_server_list = M("ServerNotice as sv", "tab_")
->where($map) ->where($map)
->join("left join tab_game gm on gm.id=sv.game_id") ->join("left join tab_game gm on gm.id=sv.game_id")
->field('sv.*,gm.icon') ->field('sv.*,gm.icon')
@ -450,7 +450,7 @@ class PromoteController extends BaseController
->page($pg, 20) ->page($pg, 20)
->select(); ->select();
$count = M("server", "tab_") $count = M("ServerNotice", "tab_")
->where($count_map) ->where($count_map)
->count(); ->count();
//var_dump($count); //var_dump($count);

@ -20,7 +20,7 @@ class SsgController extends BaseController {
const CODE_ERROR = -97; //验证码错误 const CODE_ERROR = -97; //验证码错误
const RETURN_SUCCESS = 1; const RETURN_SUCCESS = 1;
const RETURN_FALSE = 2; const RETURN_FALSE = 2;
const signprice = 10; //充值金额 const signprice = 0.01; //充值金额
public function login() public function login()

Loading…
Cancel
Save