From 0f0fdfa45ec10981c466b5732964e8f378f1c0af Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 13 十一月 2021 17:50:27 +0800
Subject: [PATCH] bug修复

---
 src/main/resources/static/service.html |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/static/service.html b/src/main/resources/static/service.html
index e0bce07..12c8a2e 100644
--- a/src/main/resources/static/service.html
+++ b/src/main/resources/static/service.html
@@ -88,11 +88,16 @@
     });
 
     function startDownLoad() {
-        ksapp.post("api/generator/service", {
+        ksapp.post("api/generator/createService", {
             name: $("input[type=text]").eq(0).val(),
             pks: $("input[type=text]").eq(1).val(),
             subpks: $("input[type=text]").eq(2).val()
         }, function (res) {
+            if (res.code == 0) {
+                window.location.href = "api/generator/downloadServiceZIP?name=" + encodeURIComponent(res.data)
+            } else {
+                layer.msg(res.msg);
+            }
 
         }, function (res) {
 

--
Gitblit v1.8.0