From f65477d05443bd049f146519b7d8125e293ec2e6 Mon Sep 17 00:00:00 2001 From: CaIon <1808837298@qq.com> Date: Sun, 17 Mar 2024 16:18:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E7=BF=BB=E9=A1=B5=E9=97=AE=E9=A2=98=20(close=20#122)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/midjourney.go | 2 +- web/src/components/LogsTable.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service/midjourney.go b/service/midjourney.go index 0c7f340..11ec5bd 100644 --- a/service/midjourney.go +++ b/service/midjourney.go @@ -193,7 +193,7 @@ func DoMidjourneyHttpRequest(c *gin.Context, timeout time.Duration, fullRequestU return MidjourneyErrorWithStatusCodeWrapper(constant.MjErrorUnknown, "do_request_failed", http.StatusInternalServerError), nullBytes, err } statusCode := resp.StatusCode - //if statusCode != 200 { + //if statusCode != 200 { // return MidjourneyErrorWithStatusCodeWrapper(constant.MjErrorUnknown, "bad_response_status_code", statusCode), nullBytes, nil //} err = req.Body.Close() diff --git a/web/src/components/LogsTable.js b/web/src/components/LogsTable.js index 3410f17..b07682b 100644 --- a/web/src/components/LogsTable.js +++ b/web/src/components/LogsTable.js @@ -265,7 +265,7 @@ const LogsTable = () => { setActivePage(page); if (page === Math.ceil(logs.length / pageSize) + 1) { // In this case we have to load more data and then append them. - loadLogs(page - 1, pageSize).then(r => { + loadLogs(page - 1, pageSize, logType).then(r => { }); } };