소스 검색

新建铸造者

licailing 3 년 전
부모
커밋
188409d659

+ 2 - 0
src/main/java/com/izouma/nineth/dto/UserRegister.java

@@ -51,4 +51,6 @@ public class UserRegister {
     private Long collectionId;
 
     private String intro;
+
+    private boolean minter;
 }

+ 1 - 0
src/main/java/com/izouma/nineth/service/CollectionService.java

@@ -129,6 +129,7 @@ public class CollectionService {
         record.setOwnerAvatar(minter.getAvatar());
         record.setStock(record.getTotal());
         record.setSale(0);
+        record.setVipQuota(record.getTotalQuota());
         if (record.isScheduleSale()) {
             if (record.getStartTime() == null) {
                 throw new BusinessException("请填写定时发布时间");

+ 1 - 0
src/main/vue/src/views/MinterEdit.vue

@@ -160,6 +160,7 @@ export default {
         },
         submit() {
             this.saving = true;
+            this.formData.minter = true;
             this.$http
                 .post(this.formData.id ? '/user/save' : '/user/create', this.formData, { body: 'json' })
                 .then(res => {