1
This commit is contained in:
parent
b48baea931
commit
a219f3e2f5
@ -542,7 +542,7 @@ class ActivityController{
|
|||||||
$weight_sum += $l['jilv'];
|
$weight_sum += $l['jilv'];
|
||||||
}
|
}
|
||||||
$random = Rand(1, $weight_sum);
|
$random = Rand(1, $weight_sum);
|
||||||
error_log($random);
|
// error_log($random);
|
||||||
for ($ii = 0; $ii < count($lot_array); $ii++) {
|
for ($ii = 0; $ii < count($lot_array); $ii++) {
|
||||||
$l = $this->getLottery($lot_array[$ii]['key']);
|
$l = $this->getLottery($lot_array[$ii]['key']);
|
||||||
$weight += $l['jilv'];
|
$weight += $l['jilv'];
|
||||||
|
@ -86,7 +86,7 @@ class PassController{
|
|||||||
if (time() >= strtotime($season['open_time']) && time() <= strtotime($season['end_time'])) {
|
if (time() >= strtotime($season['open_time']) && time() <= strtotime($season['end_time'])) {
|
||||||
$open_time = strtotime($season['open_time']);
|
$open_time = strtotime($season['open_time']);
|
||||||
$end_time = strtotime($season['end_time']);
|
$end_time = strtotime($season['end_time']);
|
||||||
$ret = $conn->execScript('UPDATE user SET season_time=:season_time, modify_time=:modify_time ' .
|
/*$ret = $conn->execScript('UPDATE user SET season_time=:season_time, modify_time=:modify_time ' .
|
||||||
' WHERE accountid=:accountid;',
|
' WHERE accountid=:accountid;',
|
||||||
array(
|
array(
|
||||||
':accountid' => $account_id,
|
':accountid' => $account_id,
|
||||||
@ -96,7 +96,7 @@ class PassController{
|
|||||||
if (!$ret) {
|
if (!$ret) {
|
||||||
die();
|
die();
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
$number = $i;
|
$number = $i;
|
||||||
$item_multiply = $this->getExplode($season['reward']);
|
$item_multiply = $this->getExplode($season['reward']);
|
||||||
//$ii = 0;
|
//$ii = 0;
|
||||||
|
@ -778,7 +778,7 @@ class RoleController{
|
|||||||
protected function createSessionId($accountid, $registertime, $session_key)
|
protected function createSessionId($accountid, $registertime, $session_key)
|
||||||
{
|
{
|
||||||
$nowtime = time();
|
$nowtime = time();
|
||||||
error_log($accountid . 'f3a6a9a5-217a-4079-ab99-b5d69b8212be' . $registertime . $nowtime);
|
// error_log($accountid . 'f3a6a9a5-217a-4079-ab99-b5d69b8212be' . $registertime . $nowtime);
|
||||||
$session_id = $nowtime
|
$session_id = $nowtime
|
||||||
. '_'
|
. '_'
|
||||||
. $registertime
|
. $registertime
|
||||||
|
@ -390,7 +390,7 @@ class ShopController{
|
|||||||
':id' => $id
|
':id' => $id
|
||||||
));
|
));
|
||||||
$price = $i['price'];
|
$price = $i['price'];
|
||||||
if ($it['type'] == 10) {
|
if ($i['type'] == 10) {
|
||||||
|
|
||||||
$num = $i['bug_groupnum'];
|
$num = $i['bug_groupnum'];
|
||||||
}
|
}
|
||||||
|
@ -474,12 +474,22 @@ class SignController{
|
|||||||
':accountid' => $account_id,
|
':accountid' => $account_id,
|
||||||
));
|
));
|
||||||
if (time() > $rowUser['season_time'] && $rowUser['season_time'] != 0) {
|
if (time() > $rowUser['season_time'] && $rowUser['season_time'] != 0) {
|
||||||
$user_ret = $conn->execScript('UPDATE user SET pass_status=0, score=0, season_status=0, integral=0, season_end_score=:season_end_score, modify_time=:modify_time, season_games=0, sea_max_kill=0, sea_max_hart=0, sea_avg_kill=0, season_win=0 ' .
|
$season_meta_table = require('../res/season@season.php');
|
||||||
|
$end_time = 0;
|
||||||
|
for ($i = 1; $i <= count($season_meta_table); $i++) {
|
||||||
|
$season = $this->getSeason($i);
|
||||||
|
if (time() >= strtotime($season['open_time']) && time() <= strtotime($season['end_time'])) {
|
||||||
|
$end_time = strtotime($season['end_time']);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$user_ret = $conn->execScript('UPDATE user SET pass_status=0, score=0, season_status=0, integral=0, season_end_score=:season_end_score, modify_time=:modify_time, season_games=0, sea_max_kill=0, sea_max_hart=0, sea_avg_kill=0, season_win=0, season_time=:season_time ' .
|
||||||
' WHERE accountid=:accountid;',
|
' WHERE accountid=:accountid;',
|
||||||
array(
|
array(
|
||||||
':accountid' => $account_id,
|
':accountid' => $account_id,
|
||||||
':season_end_score' => $rowUser['integral'],
|
':season_end_score' => $rowUser['integral'],
|
||||||
':modify_time' => time()
|
':modify_time' => time(),
|
||||||
|
':season_time' => $end_time
|
||||||
));
|
));
|
||||||
if (!$user_ret) {
|
if (!$user_ret) {
|
||||||
die();
|
die();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user