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();
|
$key = $this->getMidDataKey();
|
||||||
$data = $this->getAndCreateData($key);
|
$data = $this->getAndCreateData($key);
|
||||||
$info = array();
|
$info = array();
|
||||||
@ -37,12 +39,14 @@ class BigwheelController extends BaseAuthedController
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function drawS(){
|
public function drawS()
|
||||||
|
{
|
||||||
$key = $this->getMidDataKey();
|
$key = $this->getMidDataKey();
|
||||||
$data = $this->getAndCreateData($key);
|
$data = $this->getAndCreateData($key);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buyS(){
|
public function buyS()
|
||||||
|
{
|
||||||
$key = $this->getMidDataKey();
|
$key = $this->getMidDataKey();
|
||||||
$data = $this->getAndCreateData($key);
|
$data = $this->getAndCreateData($key);
|
||||||
}
|
}
|
||||||
@ -60,6 +64,7 @@ class BigwheelController extends BaseAuthedController
|
|||||||
}
|
}
|
||||||
if (empty($data)) {
|
if (empty($data)) {
|
||||||
$data = array(
|
$data = array(
|
||||||
|
'drawed_times' => 0,
|
||||||
"grid_list" => array()
|
"grid_list" => array()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -69,8 +74,8 @@ class BigwheelController extends BaseAuthedController
|
|||||||
private function fillInfo(&$info, &$data)
|
private function fillInfo(&$info, &$data)
|
||||||
{
|
{
|
||||||
$info = array(
|
$info = array(
|
||||||
'drawed_times' => 0,
|
'drawed_times' => $data['drawed_times'],
|
||||||
'total_times' => 9,
|
'total_times' => self::MAX_DRAW_TIMES,
|
||||||
'single_cost' => 0,
|
'single_cost' => 0,
|
||||||
'double_cost' => 0,
|
'double_cost' => 0,
|
||||||
'items1' => array(),
|
'items1' => array(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user