Save
This commit is contained in:
@@ -202,4 +202,18 @@ class Apanel
|
||||
header( 'Location: /apanel/main_view/' );
|
||||
exit;
|
||||
}
|
||||
|
||||
static public function use_ticket() {
|
||||
global $mdb;
|
||||
|
||||
$order_id = \S::get('order_id');
|
||||
$date = date('Y-m-d H:i:s');
|
||||
$mdb->update('orders', ['used_ticket' => 1, 'used_ticket_date' => $date], ['id' => $order_id]);
|
||||
|
||||
echo json_encode([
|
||||
'useStatus' => true
|
||||
]);
|
||||
|
||||
exit;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user