parent
							
								
									1a9481b094
								
							
						
					
					
						commit
						81f37625c1
					
				|  | @ -99,22 +99,22 @@ namespace Guru | ||||||
|             UpdateView(); // 刷新视图 |             UpdateView(); // 刷新视图 | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
| 
 |         // 字段缓冲 | ||||||
|  |         private StringBuilder _infoBuff; | ||||||
|         private string CreateMonitorInfo() |         private string CreateMonitorInfo() | ||||||
|         { |         { | ||||||
|             string msg = ""; |             string msg = ""; | ||||||
|             bool loaded = false; |             bool loaded = false; | ||||||
|              |              | ||||||
|              |  | ||||||
|              |  | ||||||
|             StringBuilder sb = new StringBuilder(); |  | ||||||
| 
 |  | ||||||
|             if (!ADService.Instance.IsInitialized) |             if (!ADService.Instance.IsInitialized) | ||||||
|             { |             { | ||||||
|                 msg = ColoredText("AdService not initialized...", Consts.ColorRed); |                 msg = ColoredText("AdService not initialized...", Consts.ColorRed); | ||||||
|                 return msg; |                 return msg; | ||||||
|             } |             } | ||||||
|              |              | ||||||
|  |             if (_infoBuff == null) _infoBuff = new StringBuilder(); | ||||||
|  |             _infoBuff.Clear(); | ||||||
|  |              | ||||||
|             if (_curBadsInfo == null) |             if (_curBadsInfo == null) | ||||||
|             { |             { | ||||||
|                 msg = $"BADS: {ColoredText("not ready", Consts.ColorRed)}\n"; |                 msg = $"BADS: {ColoredText("not ready", Consts.ColorRed)}\n"; | ||||||
|  | @ -137,7 +137,7 @@ namespace Guru | ||||||
|                         msg = $"BADS: {ColoredText("loading...", Consts.ColorYellow)}\n\tformat: {_curBadsInfo.format}\n"; |                         msg = $"BADS: {ColoredText("loading...", Consts.ColorYellow)}\n\tformat: {_curBadsInfo.format}\n"; | ||||||
|                         break; |                         break; | ||||||
|                     case AdStatusType.Paid: |                     case AdStatusType.Paid: | ||||||
|                         msg = $"BADS: {ColoredText("display", Consts.ColorGreen)}\n\tnetwork: {_curIadsInfo.network}\n\trevenue: {_curBadsInfo.revenue}\n"; |                         msg = $"BADS: {ColoredText("display", Consts.ColorGreen)}\n\tnetwork: {_curBadsInfo.network}\n\trevenue: {_curBadsInfo.revenue}\n"; | ||||||
|                         break; |                         break; | ||||||
|                     case AdStatusType.NotReady: |                     case AdStatusType.NotReady: | ||||||
|                         msg = $"BADS: {ColoredText("not ready", Consts.ColorGray)}\n\t{ColoredText("---", Consts.ColorGray)}\n"; |                         msg = $"BADS: {ColoredText("not ready", Consts.ColorGray)}\n\t{ColoredText("---", Consts.ColorGray)}\n"; | ||||||
|  | @ -147,7 +147,7 @@ namespace Guru | ||||||
|                         break; |                         break; | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|             sb.Append(msg); |             _infoBuff.Append(msg); | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|             if (_curIadsInfo == null) |             if (_curIadsInfo == null) | ||||||
|  | @ -159,7 +159,7 @@ namespace Guru | ||||||
|                 switch (_curIadsInfo.status) |                 switch (_curIadsInfo.status) | ||||||
|                 { |                 { | ||||||
|                     case AdStatusType.Loaded: |                     case AdStatusType.Loaded: | ||||||
|                         msg = $"IADS: {ColoredText("loaded", Consts.ColorGreen)}\n\tnetwork: {_curIadsInfo.network}\n\twaterfall: {_curBadsInfo.waterfall}\n"; |                         msg = $"IADS: {ColoredText("loaded", Consts.ColorGreen)}\n\tnetwork: {_curIadsInfo.network}\n\twaterfall: {_curIadsInfo.waterfall}\n"; | ||||||
|                         break; |                         break; | ||||||
|                     case AdStatusType.LoadFailed: |                     case AdStatusType.LoadFailed: | ||||||
|                         msg = $"IADS: {ColoredText("loading failed", Consts.ColorRed)}\n\tmessage: {_curIadsInfo.info}\n"; |                         msg = $"IADS: {ColoredText("loading failed", Consts.ColorRed)}\n\tmessage: {_curIadsInfo.info}\n"; | ||||||
|  | @ -181,7 +181,7 @@ namespace Guru | ||||||
|                         break; |                         break; | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|             sb.Append(msg); |             _infoBuff.Append(msg); | ||||||
|              |              | ||||||
| 
 | 
 | ||||||
|             if (_curRadsInfo == null) |             if (_curRadsInfo == null) | ||||||
|  | @ -215,10 +215,11 @@ namespace Guru | ||||||
|                         break; |                         break; | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|             sb.Append(msg); |             _infoBuff.Append(msg); | ||||||
|              |              | ||||||
|              |              | ||||||
|             return sb.ToString(); |             return _infoBuff.ToString(); | ||||||
|  | 
 | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue