1
This commit is contained in:
parent
9d8620734f
commit
918fdaaf9c
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user