Kaynağa Gözat

图片可看

Memory_LG 1 ay önce
ebeveyn
işleme
8b138a4c00

+ 4 - 4
qmjszx-admin/src/main/resources/templates/system/mall/add.html

@@ -131,17 +131,17 @@
         var inputName = event.currentTarget.id;
         var existingValue = $("input[name='" + inputName + "']").val();
         var fullUrl = data.response.url; // 获取完整的URL
-        var urlObject = new URL(fullUrl);
+        /*var urlObject = new URL(fullUrl);
         var relativePath = urlObject.pathname; // 获取路径部分
         // var newBaseUrl = "http://192.168.4.27"; // 新的基URL
         var newBaseUrl = "http://localhost"; // 新的基URL
-        var absoluteUrl = newBaseUrl + relativePath; // 拼接完整的URL
+        var absoluteUrl = newBaseUrl + relativePath; // 拼接完整的URL*/
 
         // 如果已经存在值,则在后面加上逗号分隔的新值
         if (existingValue) {
-            $("input[name='" + inputName + "']").val(existingValue + ',' + absoluteUrl);
+            $("input[name='" + inputName + "']").val(existingValue + ',' + fullUrl);
         } else {
-            $("input[name='" + inputName + "']").val(absoluteUrl);
+            $("input[name='" + inputName + "']").val(fullUrl);
         }
     }).on('fileremoved', function (event, key, jqXHR, pd) {
         var inputName = event.currentTarget.id;

+ 4 - 4
qmjszx-admin/src/main/resources/templates/system/mall/edit.html

@@ -156,17 +156,17 @@
             var inputName = event.currentTarget.id;
             var existingValue = $("input[name='" + inputName + "']").val();
             var fullUrl = data.response.url; // 获取完整的URL
-            var urlObject = new URL(fullUrl);
+            /*var urlObject = new URL(fullUrl);
             var relativePath = urlObject.pathname; // 获取路径部分
             // var newBaseUrl = "http://192.168.4.27"; // 新的基URL
             var newBaseUrl = "http://localhost"; // 新的基URL
-            var absoluteUrl = newBaseUrl + relativePath; // 拼接完整的URL
+            var absoluteUrl = newBaseUrl + relativePath; // 拼接完整的URL*/
 
             // 如果已经存在值,则在后面加上逗号分隔的新值
             if (existingValue) {
-                $("input[name='" + inputName + "']").val(existingValue + ',' + absoluteUrl);
+                $("input[name='" + inputName + "']").val(existingValue + ',' + fullUrl);
             } else {
-                $("input[name='" + inputName + "']").val(absoluteUrl);
+                $("input[name='" + inputName + "']").val(fullUrl);
             }
         }).on('fileremoved', function (event, id, index) {
             var inputName = event.currentTarget.id;

+ 0 - 1
qmjszx-business/src/main/java/beilv/competition/task/RedisTaskChecker.java

@@ -14,7 +14,6 @@ import javax.annotation.Resource;
 import java.util.Date;
 import java.util.Set;
 
-import static beilv.competition.domain.Constant.REDIS_CHANNEL;
 import static beilv.competition.domain.Constant.TASK_QUEUE_QUERY;
 
 /**

+ 1 - 0
qmjszx-framework/src/main/java/beilv/framework/config/ShiroConfig.java

@@ -294,6 +294,7 @@ public class ShiroConfig {
         filterChainDefinitionMap.put("/weixin-mini-app/login", "anon,captchaValidate");
         // 微信小程序所有接口请求全部放权
         filterChainDefinitionMap.put("/app-api/**", "anon,captchaValidate");
+        filterChainDefinitionMap.put("/profile/upload/**", "anon,captchaValidate");
         // 微信小程序直播请求接口
         filterChainDefinitionMap.put("/system/hik/getCameraPreviewURL", "anon,captchaValidate");
         // 注册相关