1
李凌
5 days ago 349c48e168b9f2580334422228acde7d1b21bede
src/utils/index.js
@@ -168,4 +168,9 @@
export const formatWithCommas = (num) => {
  if (num === null || num === undefined || isNaN(num)) return '--';
  return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
}
/** 体验矿机 test=Y,普通矿机 cycle 为可解锁分钟数 */
export function isMinerTest(test) {
  return test === 'Y' || test === true
}