(type)
| 65 | } |
| 66 | |
| 67 | function awardTypeName(type) { |
| 68 | const map = { |
| 69 | 0: "无奖励", |
| 70 | 1: "积分", |
| 71 | 2: "优惠券", |
| 72 | 3: "抽奖机会", |
| 73 | }; |
| 74 | return map[Number(type)] || `类型${type}`; |
| 75 | } |
| 76 | |
| 77 | function todayText() { |
| 78 | const now = new Date(); |
no outgoing calls
no test coverage detected