he2802 2 лет назад
Родитель
Сommit
0909f5c864

+ 7 - 5
zhongzheng-system/src/main/java/com/zhongzheng/modules/system/service/impl/SysWebServiceImpl.java

@@ -430,11 +430,13 @@ public class SysWebServiceImpl implements ISysWebService {
                 "\n" +
                 "\n" +
                 "    index index.html index.htm;\n" +
-                "\n" +
-                "     location / {\n" +
-                "                try_files $uri $uri/ /index.html?$args;\n" +
-                "        }\n" +
-                "}\n";
+                "\n";
+        if(plat==2){
+            configParam += "     location ^~ /seller/ {\n" +
+                    "                try_files $uri $uri/ /seller/index.html?$args;\n" +
+                    "        }\n" ;
+        }
+        configParam+="}\n";
         String param = String.format(configParam, host, filePath);
         return param;
     }