ActivityController.class.php
This commit is contained in:
parent
9eafc7ed32
commit
62868610e2
@ -454,12 +454,18 @@ class ActivityController{
|
||||
phpcommon\sendError(ERR_USER_BASE + 1,'session失效');
|
||||
return;
|
||||
}
|
||||
|
||||
if ($row['free_times'] + $row['video_times'] + 1 == 5) {
|
||||
$day = 1;
|
||||
if (phpcommon\extractChannel($account_id) == DOUYIN_CHANNEL) {
|
||||
$day = date('w', time());
|
||||
if ($day == 0) {
|
||||
$day = 7;
|
||||
}
|
||||
}
|
||||
$g_conf_lot_cluster = require('../res/lottery@lottery.php');
|
||||
for($g = 1; $g <= count($g_conf_lot_cluster); $g++) {
|
||||
$l = $this->getLottery($g);
|
||||
if ($l['jilv'] == 0) {
|
||||
if ($l['jilv'] == 0 && $l['day'] == $day) {
|
||||
array_push($lot_array, array(
|
||||
'key' => $g
|
||||
));
|
||||
@ -651,7 +657,7 @@ class ActivityController{
|
||||
$g_conf_lot_cluster = require('../res/lotterydraw@lotterydraw.php');
|
||||
}
|
||||
$day = 1;
|
||||
if ($type == 1 && phpcommon\extractChannel($accountid) == 6006) {
|
||||
if ($type == 1 && phpcommon\extractChannel($accountid) == DOUYIN_CHANNEL) {
|
||||
$day = date('w', time());
|
||||
if ($day == 0) {
|
||||
$day = 7;
|
||||
|
Loading…
x
Reference in New Issue
Block a user