From 008a14fbf1c74e5cc08c2abff6d95c59211511d9 Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Fri, 6 Mar 2020 23:12:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=AA=8C=E8=AF=81=E7=A0=81?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=EF=BC=8C=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../codetemplate/default/route/save.ftl | 4 +- .../codetemplate/default/route/update.ftl | 14 +-- .../templates/dynamic/config/form/save.html | 2 +- .../templates/dynamic/config/form/update.html | 7 +- .../common/plugin/startup/OAuthStartUp.java | 39 +++++++++ .../controller/apis/file/FileController.java | 19 +++- .../plugin/service/file/IFileService.java | 9 ++ .../service/file/impl/FileServiceImpl.java | 7 ++ .../mybatis/mapper/file/file-mapper.xml | 7 ++ ...hatOfficialAccountTestRouteController.java | 2 + .../cm/common/wechat/filter/WechatFilter.java | 40 +++++---- .../WechatOfficialAccountManager.java | 2 + cloud-manager-verification-code/pom.xml | 23 +++++ .../VerificationCodeController.java | 46 ++++++++++ .../manager/VerificationCodeManager.java | 86 +++++++++++++++++++ .../pojo/VerificationCode.java | 44 ++++++++++ .../service/IVerificationCodeService.java | 34 ++++++++ .../impl/VerificationCodeServiceImpl.java | 35 ++++++++ .../task/VerificationCodeTask.java | 31 +++++++ pom.xml | 1 + 20 files changed, 420 insertions(+), 32 deletions(-) create mode 100644 cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/startup/OAuthStartUp.java create mode 100644 cloud-manager-verification-code/pom.xml create mode 100644 cloud-manager-verification-code/src/main/java/com/cm/manager/verificationcode/controller/VerificationCodeController.java create mode 100644 cloud-manager-verification-code/src/main/java/com/cm/manager/verificationcode/manager/VerificationCodeManager.java create mode 100644 cloud-manager-verification-code/src/main/java/com/cm/manager/verificationcode/pojo/VerificationCode.java create mode 100644 cloud-manager-verification-code/src/main/java/com/cm/manager/verificationcode/service/IVerificationCodeService.java create mode 100644 cloud-manager-verification-code/src/main/java/com/cm/manager/verificationcode/service/impl/VerificationCodeServiceImpl.java create mode 100644 cloud-manager-verification-code/src/main/java/com/cm/manager/verificationcode/task/VerificationCodeTask.java diff --git a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/route/save.ftl b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/route/save.ftl index ea29bf0..404d351 100644 --- a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/route/save.ftl +++ b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/route/save.ftl @@ -106,7 +106,7 @@ {{# for(var i = 0, item = files[i]; item = files[i++];) {}} 点击下载此文件 - 删除 + 删除 {{# } }} {{# } }} @@ -414,7 +414,7 @@ <#elseif field.fieldType == "selectDepartment"> // 初始化${field.fieldExplain}选择部门 function init${field.firstUpperFieldName}SelectDepartment() { - $(document.body).on('click', '#${field.fieldType}SelectDepartment', function() { + $(document.body).on('click', '#${field.fieldName}SelectDepartment', function() { var name = this.dataset.name; var selectedNodes = []; var selectDepartment = $('#'+ name).val().split(','); diff --git a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/route/update.ftl b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/route/update.ftl index 42d9754..c7b6882 100644 --- a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/route/update.ftl +++ b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/route/update.ftl @@ -63,7 +63,7 @@ <#elseif field.fieldType == "select">
-
+