判空写法

This commit is contained in:
玉峰 2025-09-09 20:00:09 +08:00
parent 1b4a35326c
commit 95e4a2303b
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ public class AdjustManager : D_MonoSingleton<AdjustManager>
private bool IsOrganic(string _network)
{
if (_network.Equals("Organic") || _network.Equals("Untrusted Devices") || _network.Equals(""))
if (string.IsNullOrEmpty(_network) || _network.Equals("Organic") || _network.Equals("Untrusted Devices"))
{
return true;
}