Jelajahi Sumber

更新 'src/main/nine-space/src/mixins/coupon.js'

panhui 4 tahun lalu
induk
melakukan
c7793efa79
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 5 1
      src/main/nine-space/src/mixins/coupon.js

+ 5 - 1
src/main/nine-space/src/mixins/coupon.js

@@ -8,7 +8,11 @@ export default {
         },
         },
         checkUse(info, collectionId = 0) {
         checkUse(info, collectionId = 0) {
             if (collectionId && info.limited) {
             if (collectionId && info.limited) {
-                return [...info.collectionIds].includes(collectionId);
+                return [...info.collectionIds]
+                    .map(item => {
+                        return Number(item);
+                    })
+                    .includes(Number(collectionId));
             } else {
             } else {
                 return true;
                 return true;
             }
             }