FileUpload/README.md
2025-02-27 16:21:47 +08:00

44 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 本项目包含了:
1.unity的日志记录
2.将文件上传到指定地址,包括但不限制日志记录的文件
*3.随机文件Key值生成(加解密未处理) 设计之初是让玩家上传本地的错误日志方便查错,因为程序进程崩了来不及上传,可酌情处理后台自动上传频率 *
* 项目添加了CDebug方便统一管理打印需要程序添加宏控制ENABLE_LOG_INFO
# 1 markdown语法
## 2
### 3
#### 4
##### 5
12312312
```
public static string GetPlatformPath()
```
12312312
public static string GetPlatformPath()
{
// ReSharper disable once SwitchStatementHandlesSomeKnownEnumValuesWithDefault
switch (Application.platform)
{
case RuntimePlatform.Android:
return "Android";
case RuntimePlatform.IPhonePlayer:
return "iOS";
case RuntimePlatform.WindowsPlayer:
return "Windows";
default:
return $"OtherType: {Application.platform}";
}
}