This commit is contained in:
parent
2cce05442d
commit
f6b5edae8e
|
|
@ -3,8 +3,8 @@ ENV = 'development'
|
||||||
|
|
||||||
# EBTS/开发环境
|
# EBTS/开发环境
|
||||||
#VUE_APP_BASE_API = '/dev-api'
|
#VUE_APP_BASE_API = '/dev-api'
|
||||||
VUE_APP_BASE_API = 'http://localhost:8085/dev-api'
|
#VUE_APP_BASE_API = 'http://localhost:8085/dev-api'
|
||||||
#VUE_APP_BASE_API = 'https://api.ebts.top/dev-api'
|
VUE_APP_BASE_API = 'https://api.ebts.top/dev-api'
|
||||||
|
|
||||||
# 路由懒加载
|
# 路由懒加载
|
||||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ export default {
|
||||||
// 大小限制(MB)
|
// 大小限制(MB)
|
||||||
fileSize: {
|
fileSize: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 5,
|
default: 10,
|
||||||
},
|
},
|
||||||
// 文件类型, 例如['png', 'jpg', 'jpeg']
|
// 文件类型, 例如['png', 'jpg', 'jpeg']
|
||||||
fileType: {
|
fileType: {
|
||||||
|
|
@ -137,7 +137,7 @@ export default {
|
||||||
handleUploadSuccess(res, file) {
|
handleUploadSuccess(res, file) {
|
||||||
this.$message.success("提交成功!");
|
this.$message.success("提交成功!");
|
||||||
this.$emit("input", res.url);
|
this.$emit("input", res.url);
|
||||||
this.$emit("changeAddress",res.fileName);
|
this.$emit("change",res.fileName);
|
||||||
},
|
},
|
||||||
// 删除文件
|
// 删除文件
|
||||||
handleDelete(index) {
|
handleDelete(index) {
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,15 @@ public class WeChatController {
|
||||||
return ajax;
|
return ajax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public String getUrl(String type, String code) {
|
public String getUrl(String type, String code) {
|
||||||
String loginUrl = "";
|
String loginUrl = "";
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ ebts:
|
||||||
# 实例演示开关
|
# 实例演示开关
|
||||||
demoEnabled: false
|
demoEnabled: false
|
||||||
# 文件路径 示例( Windows配置D:/ebts/uploadPath,Linux配置(宝塔) /www/wwwroot/ebts/uploadPath)
|
# 文件路径 示例( Windows配置D:/ebts/uploadPath,Linux配置(宝塔) /www/wwwroot/ebts/uploadPath)
|
||||||
# profile: /www/wwwroot/gen/uploadPath
|
profile: /www/wwwroot/gen/uploadPath
|
||||||
profile: D:/gen/uploadPath
|
# profile: D:/gen/uploadPath
|
||||||
# 获取ip地址开关
|
# 获取ip地址开关
|
||||||
addressEnabled: true
|
addressEnabled: true
|
||||||
# 验证码类型 math 数组计算 char 字符验证
|
# 验证码类型 math 数组计算 char 字符验证
|
||||||
|
|
@ -38,6 +38,17 @@ ftp:
|
||||||
# 保护目录
|
# 保护目录
|
||||||
prifiles: prifiles
|
prifiles: prifiles
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
md5:
|
||||||
|
#盐
|
||||||
|
salt: clay
|
||||||
|
#秘钥
|
||||||
|
secretKey: xinanjiaodaxinxi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
wechat:
|
wechat:
|
||||||
# 微信用户小程序appid
|
# 微信用户小程序appid
|
||||||
userAppid: wx4c2099a19c69664f
|
userAppid: wx4c2099a19c69664f
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,41 @@
|
||||||
|
package com.ebts.common.config;
|
||||||
|
|
||||||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author: Clay
|
||||||
|
* @date: 2022/1/4 23:19
|
||||||
|
* @description:AESConfig
|
||||||
|
* @email: clay@hchyun.com
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@ConfigurationProperties(prefix = "md5")
|
||||||
|
public class MD5Config {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 盐
|
||||||
|
*/
|
||||||
|
private static String salt;
|
||||||
|
/**
|
||||||
|
* 秘钥
|
||||||
|
*/
|
||||||
|
private static String secretKey;
|
||||||
|
|
||||||
|
|
||||||
|
public static String getSalt() {
|
||||||
|
return salt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSalt(String salt) {
|
||||||
|
MD5Config.salt = salt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getSecretKey() {
|
||||||
|
return secretKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSecretKey(String secretKey) {
|
||||||
|
MD5Config.secretKey = secretKey;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -165,79 +165,4 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<!-- ProGuard混淆插件 -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.github.wvengen</groupId>
|
|
||||||
<artifactId>proguard-maven-plugin</artifactId>
|
|
||||||
<version>2.0.14</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>proguard</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<!-- 将混淆后的pg包自动部署到maven上-->
|
|
||||||
<attach>true</attach>
|
|
||||||
<attachArtifactClassifier>pg</attachArtifactClassifier>
|
|
||||||
<exclusions>
|
|
||||||
<exclusion>
|
|
||||||
<artifactId>log4j-api</artifactId>
|
|
||||||
<groupId>org.apache.logging.log4j</groupId>
|
|
||||||
</exclusion>
|
|
||||||
</exclusions>
|
|
||||||
<options>
|
|
||||||
<option>-dontshrink</option>
|
|
||||||
<!-- 不忽略指定jars中的非public calsses-->
|
|
||||||
<option>-dontskipnonpubliclibraryclasses</option>
|
|
||||||
<!-- 不忽略指定类库的public类成员-->
|
|
||||||
<option>-dontskipnonpubliclibraryclassmembers</option>
|
|
||||||
<option>-optimizations !field/propagation/value</option>
|
|
||||||
<option>-keepdirectories</option>
|
|
||||||
<!-- 保留继承了注释的类-->
|
|
||||||
<option>-keep class * extends java.lang.annotation.Annotation {*;}</option>
|
|
||||||
<option>-keepattributes InnerClasses,Signature,LineNumberTable,*Annotation*,Exceptions</option>
|
|
||||||
<option>
|
|
||||||
-keepclassmembers class * implements java.io.Serializable {
|
|
||||||
static final long serialVersionUID;
|
|
||||||
private static final java.io.ObjectStreamField[] serialPersistentFields;
|
|
||||||
private void
|
|
||||||
writeObject(java.io.ObjectOutputStream);
|
|
||||||
private void readObject(java.io.ObjectInputStream);
|
|
||||||
java.lang.Object writeReplace();
|
|
||||||
java.lang.Object readResolve();
|
|
||||||
}
|
|
||||||
</option>
|
|
||||||
<!-- <option>-->
|
|
||||||
<!-- -dontwarn lib/log4j-api-2.11.2.jar-->
|
|
||||||
<!-- </option>-->
|
|
||||||
<option>
|
|
||||||
-libraryjars lib/log4j-api-2.11.2.jar(!META-INF/versions/9/**.class,!module-info.class)
|
|
||||||
-libraryjars lib/log4j-core-2.11.2.jar
|
|
||||||
-libraryjars lib/log4j-jcl-2.11.2.jar
|
|
||||||
-libraryjars lib/log4j-web-2.11.2.jar
|
|
||||||
</option>
|
|
||||||
<!-- <option>-->
|
|
||||||
<!-- -libraryjars lib/byte-buddy-1.9.16.jars/9/**.class,(!META-INF/version!module-info.class)-->
|
|
||||||
<!-- </option>-->
|
|
||||||
<!-- <option>-libraryjars-->
|
|
||||||
<!-- ${settings.localRepository}/net/bytebuddy/byte-buddy/1.9.16/byte-buddy-1.9.16.jar(!META-INF/versions/9/module-info.class)-->
|
|
||||||
<!-- </option>-->
|
|
||||||
</options>
|
|
||||||
<libs>
|
|
||||||
<lib>D:/Java/jdk1.8/lib/rt.jar</lib>
|
|
||||||
<lib>D:/Java/jdk1.8/lib/jce.jar</lib>
|
|
||||||
</libs>
|
|
||||||
<!-- <outjar>C:/Users/18209/Desktop/新建文件夹/ebts-generator.jar</outjar>-->
|
|
||||||
|
|
||||||
<injar>ebts-generator-1.0.0.jar</injar>
|
|
||||||
<outjar>ebts-generator.jar</outjar>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
</project>
|
||||||
Loading…
Reference in New Issue