我尝试使用tad-php库获取考勤数据,但连接时出现错误错误,尝试按照我在 git 或 google 上找到的所有教程和故障排除但仍然无法连接。我的设备使用 ZEM600 固件。
有没有人有过这样的经历?
这是我要调用的代码:
<?php
require 'tad/lib/TADFactory.php';
require 'tad/lib/TAD.php';
require 'tad/lib/TADResponse.php';
require 'tad/lib/Providers/TADSoap.php';
require 'tad/lib/Providers/TADZKLib.php';
require 'tad/lib/Exceptions/ConnectionError.php';
require 'tad/lib/Exceptions/FilterArgumentError.php';
require 'tad/lib/Exceptions/UnrecognizedArgument.php';
require 'tad/lib/Exceptions/UnrecognizedCommand.php';
$tad_factory = new TADPHP\TADFactory();
use TADPHP\TADFactory;
use TADPHP\TAD;
$comands = TAD::commands_available();
$b1 = (new TADFactory(['ip'=>'myipaddress']))->get_instance();
$dt = $b1->get_date(); // method executed via TAD class.
echo $dt;
启用了套接字和 curl 模块。
谢谢你的帮助