Browse Source

add -1/-1

ethan 6 years ago
parent
commit
0251ac187b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/utils/point.js

+ 2 - 0
src/utils/point.js

13
     return `尻`
13
     return `尻`
14
   } else if (point1 === 0 || point2 === 0) {
14
   } else if (point1 === 0 || point2 === 0) {
15
     return `${point1 === 0 ? nzhhk.encodeS(`${point2}`) : nzhhk.encodeS(`${point1}`)}點半`
15
     return `${point1 === 0 ? nzhhk.encodeS(`${point2}`) : nzhhk.encodeS(`${point1}`)}點半`
16
+  } else if (point1 === -1 || point2 === -1) {
17
+    return `莊家通賠`
16
   } else {
18
   } else {
17
     return `${nzhhk.encodeS(`${totalPoints}`)}點`
19
     return `${nzhhk.encodeS(`${totalPoints}`)}點`
18
   }
20
   }