disable ticket checking on moveout
This commit is contained in:
parent
81e12001a5
commit
826e99ce78
@ -558,20 +558,21 @@ class KeyDoorManager extends BaseObject
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($ticket)) {
|
||||
throw new FitnessException(
|
||||
"$ctx->requestId: No active ticket found for:" . $ctx->card->number,
|
||||
FitnessException::TYPE_BAD_REQUEST,
|
||||
"NOT_FOUND_ACTIVE_TICKET",
|
||||
$ctx
|
||||
);
|
||||
}
|
||||
$ctx->ticket = $ticket;
|
||||
|
||||
$ticket->count_move_out = $ticket->usage_count;
|
||||
if (!$ctx->verifyOnly) {
|
||||
$ticket->save(false);
|
||||
}
|
||||
// if (!isset($ticket)) {
|
||||
// throw new FitnessException(
|
||||
// "$ctx->requestId: No active ticket found for:" . $ctx->card->number,
|
||||
// FitnessException::TYPE_BAD_REQUEST,
|
||||
// "NOT_FOUND_ACTIVE_TICKET",
|
||||
// $ctx
|
||||
// );
|
||||
// }
|
||||
// if ( isset($ticket)){
|
||||
// $ctx->ticket = $ticket;
|
||||
// $ticket->count_move_out = $ticket->usage_count;
|
||||
// if (!$ctx->verifyOnly) {
|
||||
// $ticket->save(false);
|
||||
// }
|
||||
// }
|
||||
|
||||
$ctx->actions[] = "MOVE_OUT";
|
||||
Yii::info("$ctx->requestId: direction_out: ticket count_move_out set after direction_out in sec " . $stopWatch->split());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user