| @@ -197,13 +197,13 @@ class KintoneAccess | |||||
| "revision" => $model->getRevision(), | "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([ | $response = Http::withHeaders([ | ||||
| "X-Cybozu-API-Token" => $this->apiToken, | "X-Cybozu-API-Token" => $this->apiToken, | ||||
| @@ -275,17 +275,15 @@ class KintoneAccess | |||||
| } | } | ||||
| $cursor = $response["id"]; | $cursor = $response["id"]; | ||||
| $totalCount = $response["totalCount"]; | |||||
| $totalCount = intval($response["totalCount"]); | |||||
| $this->cursor = $cursor; | |||||
| if (0 < $totalCount) { | if (0 < $totalCount) { | ||||
| $this->hasNext = true; | $this->hasNext = true; | ||||
| $this->cursor = $cursor; | |||||
| $this->cursorDataCount = $totalCount; | $this->cursorDataCount = $totalCount; | ||||
| } else { | } else { | ||||
| $this->cursor = null; | |||||
| $this->hasNext = false; | |||||
| $this->cursorDataCount = 0; | |||||
| $this->deleteCursor(); | |||||
| } | } | ||||
| return $response; | return $response; | ||||