Procházet zdrojové kódy

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

master
sosuke.iwabuchi před 1 rokem
rodič
revize
d95ad7ee8f
1 změnil soubory, kde provedl 10 přidání a 12 odebrání
  1. +10
    -12
      app/Kintone/KintoneAccess.php

+ 10
- 12
app/Kintone/KintoneAccess.php Zobrazit soubor

@@ -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;


Načítá se…
Zrušit
Uložit