From d95ad7ee8f57b7dc23094ed4bb5dbef4517fc5ab Mon Sep 17 00:00:00 2001 From: "sosuke.iwabuchi" Date: Fri, 16 Feb 2024 13:24:59 +0900 Subject: [PATCH] =?UTF-8?q?=EF=BC=90=E4=BB=B6=E3=81=A0=E3=81=A3=E3=81=9F?= =?UTF-8?q?=E5=A0=B4=E5=90=88=E3=81=AE=E3=82=AB=E3=83=BC=E3=82=BD=E3=83=AB?= =?UTF-8?q?=E5=87=A6=E7=90=86=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Kintone/KintoneAccess.php | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) 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;