diff --git a/app/Kintone/KintoneAccess.php b/app/Kintone/KintoneAccess.php index cf3d51e..40e8eab 100644 --- a/app/Kintone/KintoneAccess.php +++ b/app/Kintone/KintoneAccess.php @@ -197,13 +197,13 @@ class KintoneAccess "revision" => $model->getRevision(), ]; - logger([ - "ACTION" => "KINTONE UPDATE", - "APP" => $this->appName, - "RECORD_NO" => $model->getRecordId(), - "SEND_DATA" => $sendData, - "JSON" => json_encode($sendData, JSON_UNESCAPED_UNICODE), - ]); + // logger([ + // "ACTION" => "KINTONE UPDATE", + // "APP" => $this->appName, + // "RECORD_NO" => $model->getRecordId(), + // "SEND_DATA" => $sendData, + // "JSON" => json_encode($sendData, JSON_UNESCAPED_UNICODE), + // ]); $response = Http::withHeaders([ "X-Cybozu-API-Token" => $this->apiToken, @@ -275,17 +275,15 @@ class KintoneAccess } $cursor = $response["id"]; - $totalCount = $response["totalCount"]; + $totalCount = intval($response["totalCount"]); + $this->cursor = $cursor; if (0 < $totalCount) { $this->hasNext = true; - $this->cursor = $cursor; $this->cursorDataCount = $totalCount; } else { - $this->cursor = null; - $this->hasNext = false; - $this->cursorDataCount = 0; + $this->deleteCursor(); } return $response;