A bunch of tweaks
This commit is contained in:
@@ -2,13 +2,11 @@ using UnityEngine;
|
||||
|
||||
public class EncryptedWWWForm
|
||||
{
|
||||
private readonly WWWForm form = new();
|
||||
public readonly WWWForm form = new();
|
||||
|
||||
public void AddField(string key, string value)
|
||||
{
|
||||
if (SensitiveInfo.SERVER_RECEIVE_TRANSFER_KEY.Trim() != string.Empty && SensitiveInfo.SERVER_SEND_TRANSFER_KEY.Trim() != string.Empty)
|
||||
form.AddField(SensitiveInfo.Encrypt(key, SensitiveInfo.SERVER_SEND_TRANSFER_KEY), SensitiveInfo.Encrypt(value, SensitiveInfo.SERVER_SEND_TRANSFER_KEY));
|
||||
}
|
||||
|
||||
public WWWForm GetWWWForm() => form;
|
||||
}
|
||||
Reference in New Issue
Block a user