chore: 简化 Command
parent
d19f389e2a
commit
33f3545bcf
|
@ -14,8 +14,6 @@ namespace LeanCloud.Storage.Internal
|
|||
/// </summary>
|
||||
public class AVCommand : HttpRequest
|
||||
{
|
||||
public IDictionary<string, object> DataObject { get; private set; }
|
||||
|
||||
public object Body {
|
||||
get; set;
|
||||
}
|
||||
|
@ -160,7 +158,6 @@ namespace LeanCloud.Storage.Internal
|
|||
{
|
||||
this.Uri = other.Uri;
|
||||
this.Method = other.Method;
|
||||
this.DataObject = other.DataObject;
|
||||
this.Headers = new List<KeyValuePair<string, string>>(other.Headers);
|
||||
this.Body = other.Data;
|
||||
}
|
||||
|
|
|
@ -178,9 +178,9 @@ namespace LeanCloud.Storage.Internal
|
|||
{ "path", r.Uri.AbsolutePath },
|
||||
};
|
||||
|
||||
if (r.DataObject != null)
|
||||
if (r.Body != null)
|
||||
{
|
||||
results["body"] = r.DataObject;
|
||||
results["body"] = r.Body;
|
||||
}
|
||||
return results;
|
||||
}).Cast<object>().ToList();
|
||||
|
|
Loading…
Reference in New Issue