add some comment
This commit is contained in:
parent
a47b3d1db3
commit
97e31c4caf
@ -26,16 +26,20 @@ class DoorManager extends BaseObject
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $cardNumber
|
|
||||||
* @param $device
|
* @param $cardNumber 00000000: nyomogombos nyitás
|
||||||
* @param $direction
|
* @param $device string B(gomb)|Q(qrcode)|C(nfc),E(emergency)
|
||||||
|
* @param $direction string IN|OUT
|
||||||
|
* @param $verifyOnly boolean true: akkor csak lekerdezés, false: megtörtént a mozgás (ilyenkor vonunk le egy alkalmat)
|
||||||
* @param $createdAt number unix timestamp , override createdAt for doorLogs
|
* @param $createdAt number unix timestamp , override createdAt for doorLogs
|
||||||
* @param $date number unix timestamp, override date for validation check 'now'
|
* @param $date number unix timestamp, override date for validation check 'now'
|
||||||
* @return void
|
* @return void
|
||||||
* @throws BadRequestHttpException
|
* @throws BadRequestHttpException
|
||||||
|
* @throws ServerErrorHttpException
|
||||||
* @throws \yii\base\InvalidConfigException
|
* @throws \yii\base\InvalidConfigException
|
||||||
|
* @throws \yii\db\Exception
|
||||||
*/
|
*/
|
||||||
public function move($cardNumber, $device, $direction, $createdAt = null, $date = null)
|
public function move($cardNumber, $device, $direction, $verifyOnly, $createdAt = null, $date = null)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
\Yii::$app->db->beginTransaction();
|
\Yii::$app->db->beginTransaction();
|
||||||
|
|||||||
6
http-client.env.json
Normal file
6
http-client.env.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"lgyenese": {
|
||||||
|
"restapi-url": "https://cutlergyor.rschneider.hu/cutler/rest/web/index.php?r=",
|
||||||
|
"token": "123"
|
||||||
|
}
|
||||||
|
}
|
||||||
21
rest.http
Normal file
21
rest.http
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
POST {{restapi-url}}site/login
|
||||||
|
Accept: application/json
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"username": "lgyenese",
|
||||||
|
"password": "digisoft"
|
||||||
|
}
|
||||||
|
|
||||||
|
###
|
||||||
|
|
||||||
|
POST {{restapi-url}}door/move
|
||||||
|
Accept: application/json
|
||||||
|
Content-Type: application/json
|
||||||
|
Authorization: Basic bGd5ZW5lc2U6ZGlnaXNvZnQ='
|
||||||
|
|
||||||
|
{
|
||||||
|
"cardNumber": "10WMVXMZ",
|
||||||
|
"direction": "IN",
|
||||||
|
"device": "Q"
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user