kyle před 2 roky
rodič
revize
b4a6dd45f3

+ 4
- 4
app/Http/Controllers/Web/Api2021Controller.php Zobrazit soubor

@@ -206,10 +206,10 @@ class Api2021Controller extends Controller
206 206
 //        return response()->json(["succ" => true, "err" => '', "info" => []]);
207 207
 
208 208
         // testonly
209
-        $this->aSv->debuglog('server', [
210
-            'SERVER_ADDR' => $_SERVER['SERVER_ADDR'],
211
-            'lineUserId' => $lineId,
212
-        ]);
209
+//        $this->aSv->debuglog('server', [
210
+//            'SERVER_ADDR' => $_SERVER['SERVER_ADDR'],
211
+//            'lineUserId' => $lineId,
212
+//        ]);
213 213
 
214 214
         $this->sisLog['func'] = __FUNCTION__;
215 215
         $this->sisLog['k'] = $lineId;

+ 4
- 4
app/Http/Services/Web/Api2021Service.php Zobrazit soubor

@@ -291,8 +291,8 @@ class Api2021Service
291 291
                     'User-Agent'   => 'ogilvy-' . env('APP_ENV'),
292 292
                     'Accept'       => '*/*',
293 293
                 ],
294
-                'timeout' => 20, // Response timeout
295
-                'connect_timeout' => 15, // Connection timeout
294
+                'timeout' => 15, // Response timeout
295
+                'connect_timeout' => 10, // Connection timeout
296 296
                 'on_stats' => function (\GuzzleHttp\TransferStats $stats) use ($rqid) {
297 297
                     if ($stats->hasResponse()) {
298 298
                         $this->debuglog('lineFriendCheck-on_stats_ok', [
@@ -1014,8 +1014,8 @@ class Api2021Service
1014 1014
                     'User-Agent'   => 'ogilvy-' . env('APP_ENV'),
1015 1015
                     'Accept'       => '*/*',
1016 1016
                 ],
1017
-                'timeout' => 20, // Response timeout
1018
-                'connect_timeout' => 15, // Connection timeout
1017
+                'timeout' => 15, // Response timeout
1018
+                'connect_timeout' => 10, // Connection timeout
1019 1019
                 'on_stats' => function (\GuzzleHttp\TransferStats $stats) use ($rqid) {
1020 1020
                     if ($stats->hasResponse()) {
1021 1021
                         $this->debuglog('playerTag-on_stats_ok', [