xiongzhu 4 tahun lalu
induk
melakukan
d618a8bbec
3 mengubah file dengan 20 tambahan dan 7 penghapusan
  1. 1 1
      build.sh
  2. 15 4
      src/main/resources/application.yaml
  3. 4 2
      src/main/vue/src/views/BannerEdit.vue

+ 1 - 1
build.sh

@@ -11,5 +11,5 @@ rsync -av --delete src/main/nine-space/dist/ /var/www/9th/9th/
 rsync -av --delete src/main/pc-space/dist/ /var/www/9th/9th-pc/
 rsync -av --delete src/main/pc-space/dist/ /var/www/9th/9th-pc/
 mvn clean package
 mvn clean package
 systemctl stop 9th
 systemctl stop 9th
-cp -f target/9th-0.0.1-SNAPSHOT.jar /var/www/9th/9th-0.0.1-SNAPSHOT.jar
+mv -f target/9th-0.0.1-SNAPSHOT.jar /var/www/9th/9th-0.0.1-SNAPSHOT.jar
 systemctl start 9th
 systemctl start 9th

+ 15 - 4
src/main/resources/application.yaml

@@ -85,17 +85,28 @@ aliyun:
   oss-domain: https://9space-2021.oss-cn-shenzhen.aliyuncs.com
   oss-domain: https://9space-2021.oss-cn-shenzhen.aliyuncs.com
 general:
 general:
   host: https://nft.9space.vip
   host: https://nft.9space.vip
+#mychain:
+#  rest:
+#    bizid: a00e36c5
+#    cipher-suit: ec
+#    rest-url: https://rest.baas.alipay.com
+#    access-id: VB4osv3QHEHBGVZM
+#    access-secret: access.key
+#    tenantid: HEHBGVZM
+#    read-file-from-ext: false
+#    account: nine-space-official
+#    kmsId: m9U4I0R2HEHBGVZM1635922538317
 mychain:
 mychain:
   rest:
   rest:
     bizid: a00e36c5
     bizid: a00e36c5
     cipher-suit: ec
     cipher-suit: ec
     rest-url: https://rest.baas.alipay.com
     rest-url: https://rest.baas.alipay.com
-    access-id: VB4osv3QHEHBGVZM
+    access-id: 11nv01O0PJCIVRRI
     access-secret: access.key
     access-secret: access.key
-    tenantid: HEHBGVZM
+    tenantid: PJCIVRRI
     read-file-from-ext: false
     read-file-from-ext: false
-    account: nine-space-official
-    kmsId: m9U4I0R2HEHBGVZM1635922538317
+    account: 9th_test
+    kmsId: pf08UBzfPJCIVRRI1632647899655
 #alipay:
 #alipay:
 #  app-id: 2021002187613003
 #  app-id: 2021002187613003
 #  gateway: https://openapi.alipay.com/gateway.do
 #  gateway: https://openapi.alipay.com/gateway.do

+ 4 - 2
src/main/vue/src/views/BannerEdit.vue

@@ -43,10 +43,12 @@
                         <el-switch v-model="formData.link"></el-switch>
                         <el-switch v-model="formData.link"></el-switch>
                     </el-form-item>
                     </el-form-item>
                     <el-form-item prop="linkType" label="跳转类型">
                     <el-form-item prop="linkType" label="跳转类型">
-                        <el-input v-model="formData.linkType"></el-input>
+                        <el-select v-model="formData.linkType">
+                            <el-option label="藏品/盲盒" value="collection"></el-option>
+                        </el-select>
                     </el-form-item>
                     </el-form-item>
                     <el-form-item prop="linkContent" label="跳转内容">
                     <el-form-item prop="linkContent" label="跳转内容">
-                        <el-input v-model="formData.linkContent"></el-input>
+                        <el-input v-model="formData.linkContent" placeholder="输入ID"></el-input>
                     </el-form-item>
                     </el-form-item>
                     <el-form-item class="form-submit">
                     <el-form-item class="form-submit">
                         <el-button @click="onSave" :loading="saving" type="primary"> 保存 </el-button>
                         <el-button @click="onSave" :loading="saving" type="primary"> 保存 </el-button>