1
This commit is contained in:
parent
57a08ec9eb
commit
33f87fff65
@ -17,6 +17,7 @@ class OutAppPlanetController extends BaseController {
|
|||||||
const BEGIN_TOKEN_ID = 280001;
|
const BEGIN_TOKEN_ID = 280001;
|
||||||
const END_TOKEN_ID = 280300;
|
const END_TOKEN_ID = 280300;
|
||||||
const PRICE = 1;
|
const PRICE = 1;
|
||||||
|
const PERIOD = 1;
|
||||||
|
|
||||||
public function buy()
|
public function buy()
|
||||||
{
|
{
|
||||||
@ -38,8 +39,7 @@ class OutAppPlanetController extends BaseController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$ids = array();
|
$ids = array();
|
||||||
$period = 1;
|
$data = $this->load(self::PERIOD);
|
||||||
$data = $this->load($period);
|
|
||||||
{
|
{
|
||||||
$rows = myself()->_getMarketMysql()->execQuery
|
$rows = myself()->_getMarketMysql()->execQuery
|
||||||
(
|
(
|
||||||
@ -75,7 +75,7 @@ class OutAppPlanetController extends BaseController {
|
|||||||
$price
|
$price
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->save($period, $data);
|
$this->save(self::PERIOD, $data);
|
||||||
$this->_rspData(array(
|
$this->_rspData(array(
|
||||||
'trans_id' => $rspObj['trans_id'],
|
'trans_id' => $rspObj['trans_id'],
|
||||||
'params' => $rspObj['params'],
|
'params' => $rspObj['params'],
|
||||||
@ -83,9 +83,9 @@ class OutAppPlanetController extends BaseController {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function load($period)
|
private function load($peroid)
|
||||||
{
|
{
|
||||||
$rawData = myself()->_getRedis('')->get(PLANET_BUY_KEY . $period);
|
$rawData = myself()->_getRedis('')->get(PLANET_BUY_KEY . $peroid);
|
||||||
if (empty($rawData)) {
|
if (empty($rawData)) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user