fix bug sync data
This commit is contained in:
parent
cf95ab15ee
commit
65aced8ccf
|
@ -427,6 +427,19 @@ class DeviceController extends Controller {
|
|||
"TimeZoneInfos" => $TimeZoneInfos
|
||||
]), true);
|
||||
if ($res["ErrorCode"] !== "-1") {
|
||||
common::requestToCardService("/DeleteDeviceData/User", [
|
||||
"DeviceIP" => $deviceInfo->ip_address,
|
||||
"UserAuthorizeInfos" => [
|
||||
[
|
||||
"CardNo" => "",
|
||||
"Pin" => "",
|
||||
"Password" => "",
|
||||
"Group" => "",
|
||||
"StartTime" => "",
|
||||
"EndTime" => ""
|
||||
]
|
||||
]
|
||||
]);
|
||||
common::requestToCardService("/DeleteDeviceData/UserAuthorize", [
|
||||
"DeviceIP" => $deviceInfo->ip_address,
|
||||
"UserAuthorizeInfos" => [
|
||||
|
|
|
@ -65,6 +65,8 @@ class LogsSearch extends Logs {
|
|||
$query->andFilterWhere(['department_id' => $this->staff_department]);
|
||||
if ($this->staff_code)
|
||||
$query->andFilterWhere(['code' => $this->staff_code]);
|
||||
if ($this->card_number)
|
||||
$query->andFilterWhere(['logs.card_number' => $this->card_number]);
|
||||
|
||||
// grid filtering conditions
|
||||
$query->andFilterWhere([
|
||||
|
|
Loading…
Reference in New Issue
Block a user