소스 검색

0件だった場合のカーソル処理を修正

master
sosuke.iwabuchi 1 년 전
부모
커밋
d95ad7ee8f
1개의 변경된 파일10개의 추가작업 그리고 12개의 파일을 삭제
  1. +10
    -12
      app/Kintone/KintoneAccess.php

+ 10
- 12
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;


Loading…
취소
저장