Closed aice09 closed 4 years ago
Correct format is
/**
* @param int $uid Unique ID (max 65535)
* @param int|string $userid ID in DB (same like $uid, max length = 9, only numbers - depends device setting)
* @param string $name (max length = 24)
* @param int|string $password (max length = 8, only numbers - depends device setting)
* @param int $role Default Util::LEVEL_USER
* @param int $cardno Default 0 (max length = 10, only numbers)
*/
$zk->setUser($uid, $userid, $name, $password, $role, $cardno);
Check your parameters before send, maybe you got incorrect data, type or size.
It works perfectly, I tested it on iFace 702. @vodvud You can go ahead and close this issue.
Ok, this issue closed.
The code in the example.php is working after update:
But when I update the following code in https://github.com/aice09/php_zklib-1/blob/master/sync.php
Not Working
Working but shuffled
Not Working base from zklib/src/User.php public function set and example
What is the best way to setusers?