2018-01-03 11:00:46 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Console\Services;
|
|
|
|
|
2018-01-04 08:36:08 +08:00
|
|
|
use Illuminate\Support\Str;
|
2018-01-03 11:00:46 +08:00
|
|
|
use PDO;
|
2018-01-04 08:36:08 +08:00
|
|
|
use Hashids\Hashids;
|
2018-01-03 11:00:46 +08:00
|
|
|
use Doctrine\DBAL\Driver\PDOException;
|
|
|
|
use Illuminate\Database\QueryException;
|
|
|
|
use Symfony\Component\Console\Output\ConsoleOutput;
|
|
|
|
|
|
|
|
use App\Models\Aircraft;
|
|
|
|
use App\Models\Airline;
|
|
|
|
use App\Models\Airport;
|
|
|
|
use App\Models\Rank;
|
|
|
|
use App\Models\Subfleet;
|
2018-01-04 05:41:21 +08:00
|
|
|
use App\Models\User;
|
|
|
|
use App\Models\Enums\UserState;
|
|
|
|
use App\Facades\Utils;
|
|
|
|
use Illuminate\Support\Facades\Mail;
|
|
|
|
use Illuminate\Support\Facades\Hash;
|
2018-01-03 11:00:46 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class Importer
|
|
|
|
* TODO: Batch import
|
|
|
|
* @package App\Console\Services
|
|
|
|
*/
|
|
|
|
class Importer
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Hold references
|
|
|
|
*/
|
2018-01-04 08:36:08 +08:00
|
|
|
private $mappedEntities = [];
|
2018-01-03 11:00:46 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Hold the PDO connection to the old database
|
|
|
|
* @var
|
|
|
|
*/
|
|
|
|
private $conn;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
private $creds = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Hold the instance of the console logger
|
|
|
|
* @var
|
|
|
|
*/
|
|
|
|
private $log;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* CONSTANTS
|
|
|
|
*/
|
2018-01-03 11:16:35 +08:00
|
|
|
|
2018-01-03 11:00:46 +08:00
|
|
|
const BATCH_READ_ROWS = 500;
|
2018-01-03 11:16:35 +08:00
|
|
|
const SUBFLEET_NAME = 'Imported Aircraft';
|
2018-01-03 11:00:46 +08:00
|
|
|
|
2018-01-03 11:16:35 +08:00
|
|
|
/**
|
|
|
|
* Importer constructor.
|
|
|
|
* @param $db_creds
|
|
|
|
*/
|
2018-01-03 11:00:46 +08:00
|
|
|
public function __construct($db_creds)
|
|
|
|
{
|
|
|
|
// Setup the logger
|
|
|
|
$this->log = new ConsoleOutput();
|
|
|
|
|
|
|
|
# The db credentials
|
|
|
|
$this->creds = array_merge([
|
|
|
|
'host' => 'localhost',
|
|
|
|
'port' => 3306,
|
|
|
|
'name' => '',
|
|
|
|
'user' => '',
|
|
|
|
'pass' => '',
|
2018-01-04 05:41:21 +08:00
|
|
|
'table_prefix' => 'phpvms_'
|
2018-01-03 11:00:46 +08:00
|
|
|
], $db_creds);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return int|void
|
|
|
|
*/
|
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
$this->reconnect();
|
|
|
|
|
|
|
|
# Import all the different parts
|
|
|
|
$this->importRanks();
|
|
|
|
$this->importAirlines();
|
|
|
|
$this->importAircraft();
|
|
|
|
$this->importAirports();
|
|
|
|
|
|
|
|
$this->importUsers();
|
|
|
|
$this->importFlights();
|
|
|
|
$this->importPireps();
|
|
|
|
|
|
|
|
# Finish up
|
|
|
|
$this->recalculateRanks();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reconnect to the old phpVMS DB using PDO
|
|
|
|
*/
|
|
|
|
protected function reconnect()
|
|
|
|
{
|
|
|
|
$dsn = 'mysql:' . implode(';', [
|
|
|
|
'host=' . $this->creds['host'],
|
|
|
|
'port=' . $this->creds['port'],
|
|
|
|
'dbname=' . $this->creds['name']
|
|
|
|
]);
|
|
|
|
|
|
|
|
$this->info('Connection string: ' . $dsn);
|
|
|
|
|
|
|
|
try {
|
|
|
|
$this->conn = new PDO($dsn, $this->creds['user'], $this->creds['pass']);
|
|
|
|
$this->conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
|
|
|
|
} catch (\PDOException $e) {
|
|
|
|
$this->error($e);
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param $message
|
|
|
|
*/
|
|
|
|
protected function comment($message)
|
|
|
|
{
|
|
|
|
$this->log->writeln('<comment>' . $message . '</comment>');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param $message
|
|
|
|
*/
|
|
|
|
protected function error($message) {
|
|
|
|
$this->log->writeln('<error>' . $message . '</error>');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $message
|
|
|
|
*/
|
|
|
|
protected function info($message)
|
|
|
|
{
|
|
|
|
if(\is_array($message)) {
|
|
|
|
print_r($message);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$this->log->writeln('<info>'.$message.'</info>');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the table name with the prefix
|
|
|
|
* @param $table
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
protected function tableName($table)
|
|
|
|
{
|
2018-01-04 05:41:21 +08:00
|
|
|
if($this->creds['table_prefix'] !== false) {
|
|
|
|
return $this->creds['table_prefix'].$table;
|
|
|
|
}
|
|
|
|
|
|
|
|
return $table;
|
2018-01-03 11:00:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param \Illuminate\Database\Eloquent\Model $model
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
protected function saveModel($model)
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
$model->save();
|
|
|
|
return true;
|
|
|
|
} catch (QueryException $e) {
|
2018-01-04 08:36:08 +08:00
|
|
|
if($e->getCode() !== '23000') {
|
|
|
|
$this->error($e);
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
2018-01-03 11:00:46 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-04 08:36:08 +08:00
|
|
|
/**
|
|
|
|
* Create a new mapping between an old ID and the new one
|
|
|
|
* @param $entity
|
|
|
|
* @param $old_id
|
|
|
|
* @param $new_id
|
|
|
|
*/
|
|
|
|
protected function addMapping($entity, $old_id, $new_id)
|
|
|
|
{
|
|
|
|
if(!array_key_exists($entity, $this->mappedEntities)) {
|
|
|
|
$this->mappedEntities[$entity] = [];
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->mappedEntities[$entity][$old_id] = $new_id;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the ID for a mapping
|
|
|
|
* @param $entity
|
|
|
|
* @param $old_id
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
protected function getMapping($entity, $old_id)
|
|
|
|
{
|
|
|
|
if(!array_key_exists($entity, $this->mappedEntities)) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
$entity = $this->mappedEntities[$entity];
|
|
|
|
if(array_key_exists($old_id, $entity)) {
|
|
|
|
return $entity[$old_id];
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-01-03 11:00:46 +08:00
|
|
|
/**
|
|
|
|
* @param $table
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
protected function getTotalRows($table)
|
|
|
|
{
|
|
|
|
$table = $this->tableName($table);
|
|
|
|
|
|
|
|
$sql = 'SELECT COUNT(*) FROM ' . $table;
|
|
|
|
$rows = $this->conn->query($sql)->fetchColumn();
|
|
|
|
|
|
|
|
$this->info('Found '.$rows.' rows in '.$table);
|
2018-01-04 05:41:21 +08:00
|
|
|
return (int) $rows;
|
2018-01-03 11:00:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Read all the rows in a table, but read them in a batched manner
|
|
|
|
* @param string $table The name of the table
|
|
|
|
* @return \Generator
|
|
|
|
*/
|
|
|
|
protected function readRows($table)
|
|
|
|
{
|
2018-01-04 05:41:21 +08:00
|
|
|
// Set the table prefix if it has been entered
|
|
|
|
$this->tableName($table);
|
|
|
|
|
2018-01-03 11:00:46 +08:00
|
|
|
$offset = 0;
|
|
|
|
$total_rows = $this->getTotalRows($table);
|
|
|
|
|
|
|
|
while($offset < $total_rows)
|
|
|
|
{
|
|
|
|
$rows_to_read = $offset+self::BATCH_READ_ROWS;
|
|
|
|
if($rows_to_read > $total_rows) {
|
|
|
|
$rows_to_read = $total_rows;
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->info('Reading '.$offset.' to '.$rows_to_read.' of '.$total_rows);
|
|
|
|
|
|
|
|
$sql = 'SELECT * FROM ' . $this->tableName($table)
|
|
|
|
. ' LIMIT ' . self::BATCH_READ_ROWS . ' OFFSET ' . $offset;
|
|
|
|
|
|
|
|
try {
|
|
|
|
foreach ($this->conn->query($sql) as $row) {
|
|
|
|
yield $row;
|
|
|
|
}
|
|
|
|
} catch(PDOException $e) {
|
|
|
|
// Without incrementing the offset, it should re-run the same query
|
|
|
|
$this->error($e);
|
|
|
|
|
|
|
|
if(strpos($e->getMessage(), 'server has gone away') !== false) {
|
|
|
|
$this->reconnect();
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$offset += self::BATCH_READ_ROWS;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-03 11:16:35 +08:00
|
|
|
/**
|
|
|
|
* Return the subfleet
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
protected function getSubfleet()
|
|
|
|
{
|
2018-01-04 08:36:08 +08:00
|
|
|
$airline = Airline::first();
|
|
|
|
$subfleet = Subfleet::firstOrCreate(
|
|
|
|
['airline_id' => $airline->id, 'name' => self::SUBFLEET_NAME],
|
|
|
|
['type' => 'PHPVMS']
|
|
|
|
);
|
2018-01-03 11:16:35 +08:00
|
|
|
|
|
|
|
return $subfleet;
|
|
|
|
}
|
|
|
|
|
2018-01-03 11:00:46 +08:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* All the individual importers, done on a per-table basis
|
|
|
|
* Some tables get saved locally for tables that use FK refs
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Import all of the ranks
|
|
|
|
*/
|
|
|
|
protected function importRanks()
|
|
|
|
{
|
|
|
|
$this->comment('--- RANK IMPORT ---');
|
|
|
|
|
|
|
|
$count = 0;
|
|
|
|
foreach ($this->readRows('ranks') as $row)
|
|
|
|
{
|
2018-01-04 08:36:08 +08:00
|
|
|
$rank = Rank::firstOrCreate(
|
|
|
|
['name' => $row->rank],
|
|
|
|
['image_link' => $row->rankimage, 'hours'=>$row->minhours]
|
|
|
|
);
|
2018-01-03 11:00:46 +08:00
|
|
|
|
2018-01-04 08:36:08 +08:00
|
|
|
$this->addMapping('ranks', $row->rankid, $rank->id);
|
|
|
|
$this->addMapping('ranks', $row->rank, $rank->id);
|
2018-01-03 11:00:46 +08:00
|
|
|
|
2018-01-04 08:36:08 +08:00
|
|
|
if($rank->wasRecentlyCreated) {
|
2018-01-03 11:00:46 +08:00
|
|
|
++$count;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->info('Imported ' . $count . ' ranks');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Import all of the airlines. Save them all in the private var $airlines
|
|
|
|
* They're used to lookup from other reference tables
|
|
|
|
*/
|
|
|
|
protected function importAirlines()
|
|
|
|
{
|
|
|
|
$this->comment('--- AIRLINE IMPORT ---');
|
|
|
|
|
|
|
|
$count = 0;
|
|
|
|
foreach ($this->readRows('airlines') as $row)
|
|
|
|
{
|
2018-01-04 08:36:08 +08:00
|
|
|
$airline = Airline::firstOrCreate(
|
|
|
|
['icao' => $row->code],
|
|
|
|
['iata' => $row->code, 'name' => $row->name, 'active' => $row->enabled]
|
|
|
|
);
|
2018-01-03 11:00:46 +08:00
|
|
|
|
2018-01-04 08:36:08 +08:00
|
|
|
$this->addMapping('airlines', $row->id, $airline->id);
|
|
|
|
$this->addMapping('airlines', $row->code, $airline->id);
|
2018-01-03 11:00:46 +08:00
|
|
|
|
2018-01-04 08:36:08 +08:00
|
|
|
if ($airline->wasRecentlyCreated) {
|
2018-01-03 11:00:46 +08:00
|
|
|
++$count;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->info('Imported '. $count.' airlines');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Imported the aircraft
|
|
|
|
*/
|
|
|
|
protected function importAircraft()
|
|
|
|
{
|
|
|
|
$this->comment('--- AIRCRAFT IMPORT ---');
|
|
|
|
|
2018-01-03 11:16:35 +08:00
|
|
|
$subfleet = $this->getSubfleet();
|
2018-01-03 11:00:46 +08:00
|
|
|
|
|
|
|
$this->info('Subfleet ID is '.$subfleet->id);
|
|
|
|
|
|
|
|
$count = 0;
|
|
|
|
foreach($this->readRows('aircraft') as $row)
|
|
|
|
{
|
2018-01-04 08:36:08 +08:00
|
|
|
$aircraft = Aircraft::firstOrCreate(
|
|
|
|
['name' => $row->fullname, 'registration' => $row->registration],
|
|
|
|
['icao' => $row->icao,
|
|
|
|
'subfleet_id' => $subfleet->id,
|
|
|
|
'active' => $row->enabled
|
|
|
|
]);
|
2018-01-03 11:00:46 +08:00
|
|
|
|
2018-01-04 08:36:08 +08:00
|
|
|
$this->addMapping('aircraft', $row->id, $aircraft->id);
|
2018-01-03 11:00:46 +08:00
|
|
|
|
2018-01-04 08:36:08 +08:00
|
|
|
if($aircraft->wasRecentlyCreated) {
|
2018-01-03 11:00:46 +08:00
|
|
|
++$count;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->info('Imported ' . $count . ' aircraft');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Import all of the airports
|
|
|
|
*/
|
|
|
|
protected function importAirports()
|
|
|
|
{
|
|
|
|
$this->comment('--- AIRPORT IMPORT ---');
|
|
|
|
|
|
|
|
$count = 0;
|
|
|
|
foreach ($this->readRows('airports') as $row)
|
|
|
|
{
|
|
|
|
$attrs = [
|
|
|
|
'id' => $row->icao,
|
|
|
|
'icao' => $row->icao,
|
|
|
|
'name' => $row->name,
|
|
|
|
'country' => $row->country,
|
|
|
|
'lat' => $row->lat,
|
|
|
|
'lon' => $row->lng,
|
|
|
|
'hub' => $row->hub,
|
|
|
|
];
|
|
|
|
|
|
|
|
if($this->saveModel(new Airport($attrs))) {
|
|
|
|
++$count;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->info('Imported ' . $count . ' airports');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Import the flights and schedules
|
|
|
|
*/
|
|
|
|
protected function importFlights()
|
|
|
|
{
|
2018-01-03 11:16:35 +08:00
|
|
|
/*$this->comment('--- FLIGHT SCHEDULE IMPORT ---');
|
2018-01-03 11:00:46 +08:00
|
|
|
|
|
|
|
$count = 0;
|
|
|
|
foreach ($this->readRows('schedules') as $row)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-01-03 11:16:35 +08:00
|
|
|
$this->info('Imported ' . $count . ' flights');*/
|
2018-01-03 11:00:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Import all of the PIREPs
|
|
|
|
*/
|
|
|
|
protected function importPireps()
|
|
|
|
{
|
2018-01-03 11:16:35 +08:00
|
|
|
/*$this->comment('--- PIREP IMPORT ---');
|
2018-01-03 11:00:46 +08:00
|
|
|
|
|
|
|
$count = 0;
|
|
|
|
foreach ($this->readRows('pireps') as $row)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-01-03 11:16:35 +08:00
|
|
|
$this->info('Imported ' . $count . ' pireps');*/
|
2018-01-03 11:00:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
protected function importUsers()
|
|
|
|
{
|
2018-01-04 05:41:21 +08:00
|
|
|
$this->comment('--- USER IMPORT ---');
|
2018-01-03 11:00:46 +08:00
|
|
|
|
|
|
|
$count = 0;
|
2018-01-04 08:36:08 +08:00
|
|
|
foreach ($this->readRows('pilots') as $row) {
|
2018-01-04 05:41:21 +08:00
|
|
|
# TODO: What to do about pilot ids
|
|
|
|
|
2018-01-04 08:36:08 +08:00
|
|
|
$name = $row->firstname . ' ' . $row->lastname;
|
|
|
|
|
|
|
|
$airline_id = $this->getMapping('airlines', $row->code);
|
|
|
|
$rank_id = $this->getMapping('ranks', $row->rank);
|
2018-01-04 05:41:21 +08:00
|
|
|
$state = $this->getUserState($row->retired);
|
|
|
|
|
2018-01-04 08:36:08 +08:00
|
|
|
$new_password = Str::random(60);
|
|
|
|
|
2018-01-04 05:41:21 +08:00
|
|
|
$attrs = [
|
|
|
|
'name' => $name,
|
2018-01-04 08:36:08 +08:00
|
|
|
'password' => Hash::make($new_password),
|
|
|
|
'api_key' => Utils::generateApiKey(),
|
|
|
|
'airline_id' => $airline_id,
|
|
|
|
'rank_id' => $rank_id,
|
2018-01-04 05:41:21 +08:00
|
|
|
'home_airport_id' => $row->hub,
|
|
|
|
'curr_airport_id' => $row->hub,
|
2018-01-04 08:36:08 +08:00
|
|
|
'flights' => (int)$row->totalflights,
|
2018-01-04 05:41:21 +08:00
|
|
|
'flight_time' => Utils::hoursToMinutes($row->totalhours),
|
|
|
|
'state' => $state,
|
|
|
|
];
|
2018-01-03 11:00:46 +08:00
|
|
|
|
2018-01-04 08:36:08 +08:00
|
|
|
$user = User::firstOrCreate(
|
|
|
|
['email' => $row->email],
|
|
|
|
$attrs
|
|
|
|
);
|
|
|
|
|
|
|
|
if ($user->wasRecentlyCreated) {
|
2018-01-04 05:41:21 +08:00
|
|
|
++$count;
|
|
|
|
}
|
2018-01-03 11:00:46 +08:00
|
|
|
}
|
|
|
|
|
2018-01-04 05:41:21 +08:00
|
|
|
$this->info('Imported ' . $count . ' users');
|
2018-01-03 11:00:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Recalculate all of the user ranks
|
|
|
|
*/
|
|
|
|
protected function recalculateRanks()
|
|
|
|
{
|
2018-01-03 11:16:35 +08:00
|
|
|
/*$this->comment('--- RECALCULATING RANKS ---');*/
|
2018-01-03 11:00:46 +08:00
|
|
|
}
|
2018-01-04 05:41:21 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the user's new state from their original state
|
2018-01-04 08:36:08 +08:00
|
|
|
* @param $state
|
|
|
|
* @return int
|
2018-01-04 05:41:21 +08:00
|
|
|
*/
|
|
|
|
protected function getUserState($state)
|
|
|
|
{
|
2018-01-04 08:36:08 +08:00
|
|
|
// TODO: This state might differ between simpilot and classic version
|
|
|
|
|
2018-01-04 05:41:21 +08:00
|
|
|
// Declare array of classic states
|
|
|
|
$phpvms_classic_states = [
|
|
|
|
'ACTIVE' => 0,
|
|
|
|
'INACTIVE' => 1,
|
|
|
|
'BANNED' => 2,
|
|
|
|
'ON_LEAVE' => 3
|
|
|
|
];
|
|
|
|
|
|
|
|
// Decide which state they will be in accordance with v7
|
2018-01-04 08:36:08 +08:00
|
|
|
if ($state === $phpvms_classic_states['ACTIVE']) {
|
2018-01-04 05:41:21 +08:00
|
|
|
return UserState::ACTIVE;
|
2018-01-04 08:36:08 +08:00
|
|
|
} elseif ($state === $phpvms_classic_states['INACTIVE']) {
|
2018-01-04 05:41:21 +08:00
|
|
|
# TODO: Make an inactive state?
|
|
|
|
return UserState::REJECTED;
|
2018-01-04 08:36:08 +08:00
|
|
|
} elseif ($state === $phpvms_classic_states['BANNED']) {
|
2018-01-04 05:41:21 +08:00
|
|
|
return UserState::SUSPENDED;
|
2018-01-04 08:36:08 +08:00
|
|
|
} elseif ($state === $phpvms_classic_states['ON_LEAVE']) {
|
2018-01-04 05:41:21 +08:00
|
|
|
return UserState::ON_LEAVE;
|
|
|
|
}
|
|
|
|
}
|
2018-01-03 11:00:46 +08:00
|
|
|
}
|