export const formatTime = (date) => { const year = date.getFullYear() const month = date.getMonth() + 1 const day = date.getDate() const hour = date.getHours() const minute = date.getMinutes() const second = date.getSeconds() return ( [year, month, day].map(formatNumber).join('-') + ' ' + [hour, minute].map(formatNumber).join(':') ) } const formatNumber = (n) => { const s = n.toString() return s[1] ? s : '0' + s } // export const API_BASE_URL = 'http://192.168.0.135:8015/' // export const API_BASE_URL = 'http://192.168.20.55:8047/' export const API_BASE_URL = 'https://hnbwgwx.4dage.com/' export const CDN_URL = 'https://culture.4dage.com/hn_museum_game/'