Compare commits
	
		
			2 Commits
		
	
	
		
			291e75c150
			...
			d98e394fc2
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| d98e394fc2 | |||
| a40e32361a | 
| @ -328,7 +328,7 @@ export class RemoteToolWebsocket { | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   private onMessage() { |   private onMessage() { | ||||||
|     this.instance.on("message", async (err, event: string) => { |     this.instance.on("message", async (_err, event: string) => { | ||||||
|       const data = JSON.parse(event) as PlatformEvent; |       const data = JSON.parse(event) as PlatformEvent; | ||||||
|       console.log(Tag, 'receive', event) |       console.log(Tag, 'receive', event) | ||||||
|       switch (data.eventType) { |       switch (data.eventType) { | ||||||
|  | |||||||
| @ -38,7 +38,7 @@ function formatDate(date: Date, fmt = 'yyyy-MM-dd') { | |||||||
|     .replace(/s/g, date.getSeconds().toString()) |     .replace(/s/g, date.getSeconds().toString()) | ||||||
|     .replace(/SSS/g, pad3(date.getMilliseconds())) |     .replace(/SSS/g, pad3(date.getMilliseconds())) | ||||||
|     .replace(/S/g, date.getMilliseconds().toString()) |     .replace(/S/g, date.getMilliseconds().toString()) | ||||||
|     .replace(/a/g, date.getHours() < 12 ? '上午' : '下午') |     .replace(/a/g, date.getHours() < 12 ? '上午' : '下午') | ||||||
|     .replace(/A/g, date.getHours() < 12 ? 'AM' : 'PM') |     .replace(/A/g, date.getHours() < 12 ? 'AM' : 'PM') | ||||||
|     .replace(/q/g, Math.floor((date.getMonth() + 3) / 3).toString()); |     .replace(/q/g, Math.floor((date.getMonth() + 3) / 3).toString()); | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user