1
This commit is contained in:
parent
c1d9b71757
commit
5c94b86b61
@ -453,7 +453,7 @@ class ActivityController{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($row['free_times'] + $row['video_times'] + 1 == 3) {
|
if ($row['free_times'] + $row['video_times'] + 1 == 5) {
|
||||||
$g_conf_lot_cluster = require('../res/lottery@lottery.php');
|
$g_conf_lot_cluster = require('../res/lottery@lottery.php');
|
||||||
for($g = 1; $g <= count($g_conf_lot_cluster); $g++) {
|
for($g = 1; $g <= count($g_conf_lot_cluster); $g++) {
|
||||||
$l = $this->getLottery($g);
|
$l = $this->getLottery($g);
|
||||||
|
@ -40,7 +40,9 @@ class ShopController{
|
|||||||
'discount' => $item_conf['discount'],
|
'discount' => $item_conf['discount'],
|
||||||
'shop_type' => $item_conf['shop_type'],
|
'shop_type' => $item_conf['shop_type'],
|
||||||
'type' => $item_conf['fuction'],
|
'type' => $item_conf['fuction'],
|
||||||
'bug_groupnum' => $item_conf['bug_groupnum']
|
'bug_groupnum' => $item_conf['bug_groupnum'],
|
||||||
|
'shop_list' => $item_conf['shop_list'],
|
||||||
|
'bug_groupnum' => $item_conf['bug_groupnum'],
|
||||||
);
|
);
|
||||||
return $it;
|
return $it;
|
||||||
}
|
}
|
||||||
@ -121,7 +123,7 @@ class ShopController{
|
|||||||
'price' => $shop['price'],
|
'price' => $shop['price'],
|
||||||
'tip' => $shop['tip'],
|
'tip' => $shop['tip'],
|
||||||
'status' => $shop['status'],
|
'status' => $shop['status'],
|
||||||
'time' => $shop['time']
|
'time' => $shop['time'],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -168,7 +170,7 @@ class ShopController{
|
|||||||
if ($r['status'] == 2 || $r['active_time'] != 0) {
|
if ($r['status'] == 2 || $r['active_time'] != 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ($it['type'] == 10) {
|
if ($it['type'] == 10 || $it['type'] == 11) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$status = 1;
|
$status = 1;
|
||||||
@ -180,8 +182,8 @@ class ShopController{
|
|||||||
'id' => $it['id'],
|
'id' => $it['id'],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
if ($it['type'] == 10) {
|
if ($it['type'] == 10 || $it['type'] == 11) {
|
||||||
$num = 10;
|
$num = $it['bug_groupnum'];
|
||||||
}
|
}
|
||||||
array_push($coin_shop,array(
|
array_push($coin_shop,array(
|
||||||
'id' => $it['id'],
|
'id' => $it['id'],
|
||||||
@ -189,7 +191,8 @@ class ShopController{
|
|||||||
'status' => $status,
|
'status' => $status,
|
||||||
'discount' => 0,
|
'discount' => 0,
|
||||||
'coin_id' => 10001,
|
'coin_id' => 10001,
|
||||||
'num' => $num
|
'num' => $num,
|
||||||
|
'shop_list' => $it['shop_list'],
|
||||||
));
|
));
|
||||||
} else if ($it['shop_type'] == 2) {
|
} else if ($it['shop_type'] == 2) {
|
||||||
if ($status == 0) {
|
if ($status == 0) {
|
||||||
@ -197,8 +200,8 @@ class ShopController{
|
|||||||
'id' => $it['id'],
|
'id' => $it['id'],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
if ($it['type'] == 10) {
|
if ($it['type'] == 10 || $it['type'] == 11) {
|
||||||
$num = 10;
|
$num = $it['bug_groupnum'];
|
||||||
}
|
}
|
||||||
array_push($diamond_shop,array(
|
array_push($diamond_shop,array(
|
||||||
'id' => $it['id'],
|
'id' => $it['id'],
|
||||||
@ -206,7 +209,8 @@ class ShopController{
|
|||||||
'status' => $status,
|
'status' => $status,
|
||||||
'discount' => 0,
|
'discount' => 0,
|
||||||
'coin_id' => 10003,
|
'coin_id' => 10003,
|
||||||
'num' => $num
|
'num' => $num,
|
||||||
|
'shop_list' => $it['shop_list'],
|
||||||
));
|
));
|
||||||
} else if ($it['shop_type'] == 3) {
|
} else if ($it['shop_type'] == 3) {
|
||||||
if ($status == 0) {
|
if ($status == 0) {
|
||||||
@ -214,8 +218,8 @@ class ShopController{
|
|||||||
'id' => $it['id'],
|
'id' => $it['id'],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
if ($it['type'] == 10) {
|
if ($it['type'] == 10 || $it['type'] == 11) {
|
||||||
$num = 10;
|
$num = $it['bug_groupnum'];
|
||||||
}
|
}
|
||||||
array_push($coin_shop,array(
|
array_push($coin_shop,array(
|
||||||
'id' => $it['id'],
|
'id' => $it['id'],
|
||||||
@ -223,7 +227,8 @@ class ShopController{
|
|||||||
'status' => $status,
|
'status' => $status,
|
||||||
'discount' => 0,
|
'discount' => 0,
|
||||||
'coin_id' => 10001,
|
'coin_id' => 10001,
|
||||||
'num' => $num
|
'num' => $num,
|
||||||
|
'shop_list' => $it['shop_list'],
|
||||||
));
|
));
|
||||||
if ($status == 0) {
|
if ($status == 0) {
|
||||||
array_push($rand_diamondshop,array(
|
array_push($rand_diamondshop,array(
|
||||||
@ -236,7 +241,8 @@ class ShopController{
|
|||||||
'status' => $status,
|
'status' => $status,
|
||||||
'discount' => 0,
|
'discount' => 0,
|
||||||
'coin_id' => 10003,
|
'coin_id' => 10003,
|
||||||
'num' => $num
|
'num' => $num,
|
||||||
|
'shop_list' => $it['shop_list'],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -374,7 +380,7 @@ class ShopController{
|
|||||||
));
|
));
|
||||||
if ($row) {
|
if ($row) {
|
||||||
$it = $this->getItem($id);
|
$it = $this->getItem($id);
|
||||||
if ($row['status'] != 2 && $row['active_time'] == 0 && $it['type'] != 10) {
|
if ($row['status'] != 2 && $row['active_time'] == 0 && $it['type'] != 10 && $it['type'] != 11) {
|
||||||
phpcommon\sendError(ERR_USER_BASE + 4, '商品已购买');
|
phpcommon\sendError(ERR_USER_BASE + 4, '商品已购买');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user