|
@@ -83,8 +83,8 @@ class Eggnew extends Api
|
|
|
$this->error('暂时还没有奖池');
|
|
|
}
|
|
|
$jackpot_id = $jackpot["id"];
|
|
|
- \app\common\model\EggJackpot::update(["status"=>1,'updatetime'=>$nowtime],["id"=>$jackpot_id]);//打开,启用时间
|
|
|
- \app\common\model\EggGift::update(["is_use"=>0,'updatetime'=>$nowtime],["Jackpot_id"=>$jackpot_id]);//重置礼物,启用时间
|
|
|
+ \app\common\model\EggJackpot::update(["status"=>1,'starttime'=>$nowtime],["id"=>$jackpot_id]);//打开,启用时间
|
|
|
+ \app\common\model\EggGift::update(["is_use"=>0,'starttime'=>$nowtime],["Jackpot_id"=>$jackpot_id]);//重置礼物,启用时间
|
|
|
}
|
|
|
|
|
|
// 查找奖池对应的奖池礼物
|
|
@@ -104,10 +104,10 @@ class Eggnew extends Api
|
|
|
|
|
|
// 更新奖池
|
|
|
$res2 = \app\common\model\EggJackpot::update(["status"=>-1],["id"=>$jackpot_id]);
|
|
|
- $res3 = \app\common\model\EggJackpot::update(["status"=>1,'updatetime'=>$nowtime],["id"=>$next_jackpot_id]);//打开,启用时间
|
|
|
+ $res3 = \app\common\model\EggJackpot::update(["status"=>1,'starttime'=>$nowtime],["id"=>$next_jackpot_id]);//打开,启用时间
|
|
|
|
|
|
// 下个奖池所有礼物改为未使用
|
|
|
- $res4 = \app\common\model\EggGift::update(["is_use"=>0,'updatetime'=>$nowtime],["Jackpot_id"=>$next_jackpot_id]);//重置礼物,启用时间
|
|
|
+ $res4 = \app\common\model\EggGift::update(["is_use"=>0,'starttime'=>$nowtime],["Jackpot_id"=>$next_jackpot_id]);//重置礼物,启用时间
|
|
|
|
|
|
// 获取下个奖池礼物
|
|
|
$nextjackpotGift = \app\common\model\EggGift::where(["Jackpot_id"=>$next_jackpot_id,"is_use"=>0])->select();
|
|
@@ -143,7 +143,7 @@ class Eggnew extends Api
|
|
|
}
|
|
|
|
|
|
//在这里记录奖池产出统计,老一轮的奖池已经消耗完毕
|
|
|
-
|
|
|
+
|
|
|
//在这里记录奖池产出统计
|
|
|
|
|
|
} else {
|
|
@@ -184,7 +184,7 @@ class Eggnew extends Api
|
|
|
"gift_name" => $v["gift_name"],
|
|
|
"Jackpot_id" => $v["Jackpot_id"],
|
|
|
// "prize_no" => $v["prize_no"],
|
|
|
- "jackpot_updatetime" => $v["updatetime"],
|
|
|
+ "starttime" => $v["starttime"],
|
|
|
"price" => $v["price"],
|
|
|
"createtime" => time(),
|
|
|
];
|