mobile api changes + docker image basics
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace mobileapi\manager;
|
||||
|
||||
use common\components\DateUtil;
|
||||
use common\components\Helper;
|
||||
use Exception;
|
||||
use Yii;
|
||||
use common\models\Card;
|
||||
@@ -70,8 +72,8 @@ class ApiManager
|
||||
'name' => $ticket->ticketType->name,
|
||||
],
|
||||
'usageCount' => $ticket->usage_count,
|
||||
'start' => $ticket->start,
|
||||
'end' => $ticket->end
|
||||
'start' => DateUtil::parseDateTime( $ticket->start)->getTimestamp(),
|
||||
'end' => DateUtil::parseDateTime( $ticket->end)->getTimestamp()
|
||||
];
|
||||
}
|
||||
return [
|
||||
@@ -125,5 +127,12 @@ class ApiManager
|
||||
|
||||
}
|
||||
|
||||
public function getDashboardPage(){
|
||||
return [
|
||||
'virtual-key' => $this->getVirtualKeyPage(),
|
||||
'card' => $this->getCardPage(),
|
||||
'ticket' => $this->getTicketPage(),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user