geniv/nette-aps-driver

Nette 框架的 APS 驱动组件

v1.4 2022-06-08 22:38 UTC

This package is auto-updated.

Last update: 2024-09-09 23:50:37 UTC


README

通过 APS 400 和 APS mini Plus

安装

$ composer require geniv/nette-aps-driver

"geniv/nette-aps-driver": "^1.0"

需要

"php": ">=7.0",
"dibi/dibi": ">=3.0",
"nette/utils": ">=2.4"

方法

via code

包含在应用程序中

neon 配置服务

services:
    - ApsDriver(@mssql.connection)

用法

$aps = $this->context->getByType(\ApsDriver::class);

$aps->getListPerson()->fetchAll();
$aps->getListPerson()->where(['ID_Folder'=>7])->fetchAll();
$aps->getListPerson()->where(['IsDeleted'=>true])->fetchAll();

创建用户

创建人员 -> 创建 OD 选择卡(物理卡或虚拟卡) -> 创建 M:N person_accesgroup 行,然后上传到硬件调用:[api_UploadData]->uploadData()