This commit is contained in:
aozhiwei 2024-08-01 14:28:24 +08:00
parent 9d8620734f
commit 918fdaaf9c

View File

@ -24,10 +24,12 @@ use services\LogService;
}
*/
class BigwheelController extends BaseAuthedController
{
class BigwheelController extends BaseAuthedController {
public function info(){
const MAX_DRAW_TIMES = 9;
public function info()
{
$key = $this->getMidDataKey();
$data = $this->getAndCreateData($key);
$info = array();
@ -37,12 +39,14 @@ class BigwheelController extends BaseAuthedController
));
}
public function drawS(){
public function drawS()
{
$key = $this->getMidDataKey();
$data = $this->getAndCreateData($key);
}
public function buyS(){
public function buyS()
{
$key = $this->getMidDataKey();
$data = $this->getAndCreateData($key);
}
@ -60,6 +64,7 @@ class BigwheelController extends BaseAuthedController
}
if (empty($data)) {
$data = array(
'drawed_times' => 0,
"grid_list" => array()
);
}
@ -69,8 +74,8 @@ class BigwheelController extends BaseAuthedController
private function fillInfo(&$info, &$data)
{
$info = array(
'drawed_times' => 0,
'total_times' => 9,
'drawed_times' => $data['drawed_times'],
'total_times' => self::MAX_DRAW_TIMES,
'single_cost' => 0,
'double_cost' => 0,
'items1' => array(),