From 6f81ed089587b6c87cfcb25bb07c719c8a4c896f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E7=94=B7?= Date: Thu, 10 Aug 2023 16:29:46 +0800 Subject: [PATCH] image origin default to local --- scripts/combine.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/combine.lua b/scripts/combine.lua index 231da59..5f6bb22 100644 --- a/scripts/combine.lua +++ b/scripts/combine.lua @@ -35,9 +35,8 @@ if image_origin == "WX" then elseif image_origin == "LOCAL" then ngx.log(ngx.INFO, "IMAGE ORIGIN -> ", image_origin) else - ngx.status = 400 - ngx.log(ngx.ERR, "COMBINE REQUEST PAYLOAD IMAGES ORIGIN NOT FOUND.") - return + image_origin = "LOCAL" + ngx.log(ngx.INFO, "IMAGE ORIGIN default to LOCAL") end -- Judge payload images para length