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