@@ -53,7 +53,7 @@ public function createAsync(Domain $body)
5353 return $ this ->sendRequest (
5454 $ this ->domainrobotConfig ->getUrl () . "/domain " ,
5555 'POST ' ,
56- ["json " => $ body ->toArray (true )]
56+ ["json " => $ body ->toArray ()]
5757 );
5858 }
5959
@@ -145,7 +145,7 @@ public function renewAsync(Domain $body)
145145 return $ this ->sendRequest (
146146 $ this ->domainrobotConfig ->getUrl () . "/domain/ " .$ body ->getName ()."/_renew " ,
147147 'PUT ' ,
148- ["json " => $ body ->toArray (true )]
148+ ["json " => $ body ->toArray ()]
149149 );
150150 }
151151
@@ -178,7 +178,7 @@ public function transferAsync(Domain $body)
178178 return $ this ->sendRequest (
179179 $ this ->domainrobotConfig ->getUrl () . "/domain/_transfer " ,
180180 'POST ' ,
181- ["json " => $ body ->toArray (true )]
181+ ["json " => $ body ->toArray ()]
182182 );
183183 }
184184
@@ -210,7 +210,7 @@ public function updateStatusAsync(Domain $body)
210210 return $ this ->sendRequest (
211211 $ this ->domainrobotConfig ->getUrl () . "/domain/ " .$ body ->getName ()."/_statusUpdate " ,
212212 'PUT ' ,
213- ["json " => $ body ->toArray (true )]
213+ ["json " => $ body ->toArray ()]
214214 );
215215 }
216216
@@ -287,7 +287,7 @@ public function listAsync(Query $body = null)
287287 {
288288 $ data = null ;
289289 if ($ body != null ) {
290- $ data = $ body ->toArray (true );
290+ $ data = $ body ->toArray ();
291291 }
292292 return new DomainrobotPromise ($ this ->sendRequest (
293293 $ this ->domainrobotConfig ->getUrl () . "/domain/_search " ,
@@ -388,7 +388,7 @@ public function restoreListAsync(Query $body = null)
388388 {
389389 $ data = null ;
390390 if ($ body != null ) {
391- $ data = $ body ->toArray (true );
391+ $ data = $ body ->toArray ();
392392 }
393393 return new DomainrobotPromise ($ this ->sendRequest (
394394 $ this ->domainrobotConfig ->getUrl () . "/domain/restore/_search " ,
@@ -483,7 +483,7 @@ public function updateAsync(Domain $body)
483483 return $ this ->sendRequest (
484484 $ this ->domainrobotConfig ->getUrl () . "/domain/ " .$ body ->getName (),
485485 'PUT ' ,
486- ["json " => $ body ->toArray (true )]
486+ ["json " => $ body ->toArray ()]
487487 );
488488 }
489489
@@ -519,7 +519,7 @@ public function restoreAsync(DomainRestore $body)
519519 return $ this ->sendRequest (
520520 $ this ->domainrobotConfig ->getUrl () . "/domain/ " .$ body ->getName ()."/_restore " ,
521521 'PUT ' ,
522- ["json " => $ body ->toArray (true )]
522+ ["json " => $ body ->toArray ()]
523523 );
524524 }
525525}
0 commit comments