()
| 181 | * @Author: 白雾茫茫丶 |
| 182 | */ |
| 183 | export const timeFix = (): string => { |
| 184 | const time = new Date() |
| 185 | const hour = time.getHours() |
| 186 | return hour < 9 ? '早上好' : hour <= 11 ? '上午好' : hour <= 13 ? '中午好' : hour < 20 ? '下午好' : '夜深了' |
| 187 | } |
| 188 | |
| 189 | /** |
| 190 | * @description: 随机欢迎语 |
no outgoing calls
no test coverage detected