Browse Source

采美百科bug修改

yuwenjun1997 2 years ago
parent
commit
b8b229820c

+ 1 - 1
src/main/resources/config/beta/application-beta.yml

@@ -61,7 +61,7 @@ caimei:
 # 阿里云oss配置
 aliyunOss:
   # 文件上传目录
-  ossBucket: beta/dir
+  ossBucket: beta
 
 #DFS配置
 fdfs:

+ 1 - 1
src/main/resources/config/dev/application-dev.yml

@@ -68,7 +68,7 @@ caimei:
 # 阿里云oss配置
 aliyunOss:
   # 文件上传目录
-  ossBucket: dev/dir
+  ossBucket: dev
 
 #DFS配置
 fdfs:

+ 1 - 1
src/main/resources/config/prod/application-prod.yml

@@ -61,7 +61,7 @@ caimei:
 # 阿里云oss配置
 aliyunOss:
   # 阿里云 oss 文件上传目录
-  ossBucket: prod/dir
+  ossBucket: prod
 
 #DFS配置
 fdfs:

+ 6 - 0
src/main/resources/static/js/supplier-center/encyclopedia/instrument-edit.js

@@ -344,6 +344,12 @@ const app = new Vue({
             const self = this;
             SupplierApi.ShopBaikeProductWordsValidate({ checkPoint: 2 }, function(res){
                 let flag = true
+                if(res.data.startsWith('|')){
+                    res.data = res.data.substring(1)
+                }
+                if(res.data.endsWith('|')){
+                    res.data = res.data.substring(0, res.data.length - 1)
+                }
                 for (const key in params) {
                     if (!whiteList.includes(key)) {
                         const target = JSON.stringify(params[key])

+ 6 - 0
src/main/resources/static/js/supplier-center/encyclopedia/product-edit.js

@@ -348,6 +348,12 @@ const app = new Vue({
             const self = this;
             SupplierApi.ShopBaikeProductWordsValidate({ checkPoint: 2 }, function(res){
                 let flag = true
+                if(res.data.startsWith('|')){
+                    res.data = res.data.substring(1)
+                }
+                if(res.data.endsWith('|')){
+                    res.data = res.data.substring(0, res.data.length - 1)
+                }
                 for (const key in params) {
                     if (!whiteList.includes(key)) {
                         const target = JSON.stringify(params[key])