@@ -16,7 +16,12 @@ abstract class Api
1616 /**
1717 * @var string SDK Version
1818 */
19- const VERSION = '1.1.17 ' ;
19+ const VERSION = '1.1.18 ' ;
20+
21+ /**
22+ * @var string SDK update date
23+ */
24+ const UPDATE_DATE = '2020.07.13 ' ;
2025
2126 /**
2227 * @var string
@@ -136,8 +141,8 @@ public static function getLogger()
136141 {
137142 if (self ::$ logger === null ) {
138143 self ::$ logger = new Logger ('kucoin-sdk ' );
139- $ handler = new RotatingFileHandler (static ::getLogPath () . '/kucoin-sdk.log ' , 0 , static ::$ logLevel );
140- $ formatter = new LineFormatter (null , null , false , true );
144+ $ handler = new RotatingFileHandler (static ::getLogPath () . '/kucoin-sdk.log ' , 0 , static ::$ logLevel );
145+ $ formatter = new LineFormatter (null , null , false , true );
141146 $ handler ->setFormatter ($ formatter );
142147 self ::$ logger ->pushHandler ($ handler );
143148 }
@@ -216,7 +221,7 @@ public function call($method, $uri, array $params = [], array $headers = [], $ti
216221 $ request ->getRequestUri (),
217222 $ request ->getBodyParams ()
218223 );
219- $ headers = array_merge ($ headers , $ authHeaders );
224+ $ headers = array_merge ($ headers , $ authHeaders );
220225 }
221226 $ headers ['User-Agent ' ] = 'KuCoin-PHP-SDK/ ' . static ::VERSION ;
222227
@@ -232,7 +237,7 @@ public function call($method, $uri, array $params = [], array $headers = [], $ti
232237 static ::getLogger ()->debug (sprintf ('Sent a HTTP request#%s: %s ' , $ requestId , $ request ));
233238 }
234239 $ requestStart = microtime (true );
235- $ response = $ this ->http ->request ($ request , $ timeout );
240+ $ response = $ this ->http ->request ($ request , $ timeout );
236241 if (self ::isDebugMode ()) {
237242 $ cost = (microtime (true ) - $ requestStart ) * 1000 ;
238243 static ::getLogger ()->debug (sprintf ('Received a HTTP response#%s: cost %.2fms, %s ' , $ requestId , $ cost , $ response ));
0 commit comments