Bläddra i källkod

Merge branch 'pre' into pro

kyle 2 år sedan
förälder
incheckning
2c097f6b60

+ 3
- 6
app/Http/Controllers/Web/Api2021Controller.php Visa fil

377
             return response()->json(["succ" => false, "err" => '測試點數不能再打了']);
377
             return response()->json(["succ" => false, "err" => '測試點數不能再打了']);
378
         }
378
         }
379
 
379
 
380
-        \Log::debug($rlimitkey);
381
-        \Log::debug($redis::get($rlimitkey));
382
-
383
-        return response()->json(["succ" => true, "err" => 'okok']);
380
+//        \Log::debug($rlimitkey);
381
+//        \Log::debug($redis::get($rlimitkey));
382
+//        return response()->json(["succ" => true, "err" => 'okok']);
384
 
383
 
385
         // 業務驗證(防重)
384
         // 業務驗證(防重)
386
         // 作用範圍: 以人為單位
385
         // 作用範圍: 以人為單位
393
             return response()->json(["succ" => false, "err" => '您操作過快,請稍後再試']);
392
             return response()->json(["succ" => false, "err" => '您操作過快,請稍後再試']);
394
         }
393
         }
395
 
394
 
396
-//        return response()->json(["succ" => true, "err" => 'okok']);
397
-
398
         // 業務驗證(是否加入LINE帳號的好友)
395
         // 業務驗證(是否加入LINE帳號的好友)
399
         if (!$this->aSv->lineFriendCheck($lineId)) {
396
         if (!$this->aSv->lineFriendCheck($lineId)) {
400
             $this->sisLog['memoIn'] = json_encode(['error' => 'logical'], JSON_UNESCAPED_UNICODE);
397
             $this->sisLog['memoIn'] = json_encode(['error' => 'logical'], JSON_UNESCAPED_UNICODE);

+ 13
- 13
app/Http/Services/Web/Api2021Service.php Visa fil

809
                         'Accept'       => '*/*',
809
                         'Accept'       => '*/*',
810
                     ]
810
                     ]
811
                 ];
811
                 ];
812
-                if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.16.196', '172.31.1.169', '172.31.9.46'])) $req['proxy'] = env('CCH_PROXY');
812
+                if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.30.167', '172.31.9.233', '172.31.42.197', '172.31.34.163'])) $req['proxy'] = env('CCH_PROXY');
813
                 $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/linepoint/issue', $req);
813
                 $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/linepoint/issue', $req);
814
                 $resA = json_decode($response->getBody());
814
                 $resA = json_decode($response->getBody());
815
                 $data['memoIn'] = json_encode(array_merge($param, $logdata), JSON_UNESCAPED_UNICODE);
815
                 $data['memoIn'] = json_encode(array_merge($param, $logdata), JSON_UNESCAPED_UNICODE);
880
                         'Accept'       => '*/*',
880
                         'Accept'       => '*/*',
881
                     ]
881
                     ]
882
                 ];
882
                 ];
883
-                if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.16.196', '172.31.1.169', '172.31.9.46'])) $req['proxy'] = env('CCH_PROXY');
883
+                if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.30.167', '172.31.9.233', '172.31.42.197', '172.31.34.163'])) $req['proxy'] = env('CCH_PROXY');
884
                 $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/linepoint/query', $req);
884
                 $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/linepoint/query', $req);
885
                 $resB = json_decode($response->getBody());
885
                 $resB = json_decode($response->getBody());
886
                 $data['memoIn'] = json_encode(array_merge($param, $logdata), JSON_UNESCAPED_UNICODE);
886
                 $data['memoIn'] = json_encode(array_merge($param, $logdata), JSON_UNESCAPED_UNICODE);
1185
                     'Accept'       => '*/*',
1185
                     'Accept'       => '*/*',
1186
                 ]
1186
                 ]
1187
             ];
1187
             ];
1188
-            if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.16.196', '172.31.1.169', '172.31.9.46'])) $req['proxy'] = env('CCH_PROXY');
1188
+            if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.30.167', '172.31.9.233', '172.31.42.197', '172.31.34.163'])) $req['proxy'] = env('CCH_PROXY');
1189
             $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/tag/Tagging', $req);
1189
             $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/tag/Tagging', $req);
1190
             $res = $response->getBody();
1190
             $res = $response->getBody();
1191
         } catch (Exception $ex) {
1191
         } catch (Exception $ex) {
1280
                 'Accept'       => '*/*',
1280
                 'Accept'       => '*/*',
1281
             ]
1281
             ]
1282
         ];
1282
         ];
1283
-        if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.16.196', '172.31.1.169', '172.31.9.46'])) $req['proxy'] = env('CCH_PROXY');
1283
+        if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.30.167', '172.31.9.233', '172.31.42.197', '172.31.34.163'])) $req['proxy'] = env('CCH_PROXY');
1284
         $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/tag/Update', $req);
1284
         $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/tag/Update', $req);
1285
         $res = $response->getBody();
1285
         $res = $response->getBody();
1286
         // 直通紀錄
1286
         // 直通紀錄
1374
                 'Accept'       => '*/*',
1374
                 'Accept'       => '*/*',
1375
             ]
1375
             ]
1376
         ];
1376
         ];
1377
-        if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.16.196', '172.31.1.169', '172.31.9.46'])) $req['proxy'] = env('CCH_PROXY');
1377
+        if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.30.167', '172.31.9.233', '172.31.42.197', '172.31.34.163'])) $req['proxy'] = env('CCH_PROXY');
1378
         $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/tag/Tagging', $req);
1378
         $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/tag/Tagging', $req);
1379
         $res = $response->getBody();
1379
         $res = $response->getBody();
1380
         // 直通紀錄
1380
         // 直通紀錄
1458
                 'Accept'       => '*/*',
1458
                 'Accept'       => '*/*',
1459
             ]
1459
             ]
1460
         ];
1460
         ];
1461
-        if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.16.196', '172.31.1.169', '172.31.9.46'])) $req['proxy'] = env('CCH_PROXY');
1461
+        if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.30.167', '172.31.9.233', '172.31.42.197', '172.31.34.163'])) $req['proxy'] = env('CCH_PROXY');
1462
         $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/tag/Insert', $req);
1462
         $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/tag/Insert', $req);
1463
         $res = $response->getBody();
1463
         $res = $response->getBody();
1464
         // 直通紀錄
1464
         // 直通紀錄
1548
                 'Accept'       => '*/*',
1548
                 'Accept'       => '*/*',
1549
             ]
1549
             ]
1550
         ];
1550
         ];
1551
-        if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.16.196', '172.31.1.169', '172.31.9.46'])) $req['proxy'] = env('CCH_PROXY');
1551
+        if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.30.167', '172.31.9.233', '172.31.42.197', '172.31.34.163'])) $req['proxy'] = env('CCH_PROXY');
1552
         $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/linepoint/issue', $req);
1552
         $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/linepoint/issue', $req);
1553
         $resA = json_decode($response->getBody());
1553
         $resA = json_decode($response->getBody());
1554
         $data['memoIn'] = json_encode(array_merge($param, $logdata), JSON_UNESCAPED_UNICODE);
1554
         $data['memoIn'] = json_encode(array_merge($param, $logdata), JSON_UNESCAPED_UNICODE);
1621
                 'Accept'       => '*/*',
1621
                 'Accept'       => '*/*',
1622
             ]
1622
             ]
1623
         ];
1623
         ];
1624
-        if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.16.196', '172.31.1.169', '172.31.9.46'])) $req['proxy'] = env('CCH_PROXY');
1624
+        if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.30.167', '172.31.9.233', '172.31.42.197', '172.31.34.163'])) $req['proxy'] = env('CCH_PROXY');
1625
         $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/contact/QueryQualification', $req);
1625
         $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/contact/QueryQualification', $req);
1626
         $res = $response->getBody();
1626
         $res = $response->getBody();
1627
         // 直通紀錄
1627
         // 直通紀錄
2130
                         'Accept'       => '*/*',
2130
                         'Accept'       => '*/*',
2131
                     ]
2131
                     ]
2132
                 ];
2132
                 ];
2133
-                if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.16.196', '172.31.1.169', '172.31.9.46'])) $req['proxy'] = env('CCH_PROXY');
2133
+                if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.30.167', '172.31.9.233', '172.31.42.197', '172.31.34.163'])) $req['proxy'] = env('CCH_PROXY');
2134
                 $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/linepoint/issue', $req);
2134
                 $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/linepoint/issue', $req);
2135
                 $resA = json_decode($response->getBody());
2135
                 $resA = json_decode($response->getBody());
2136
                 $data['memoIn'] = json_encode(array_merge($param, $logdata), JSON_UNESCAPED_UNICODE);
2136
                 $data['memoIn'] = json_encode(array_merge($param, $logdata), JSON_UNESCAPED_UNICODE);
2202
                         'Accept'       => '*/*',
2202
                         'Accept'       => '*/*',
2203
                     ]
2203
                     ]
2204
                 ];
2204
                 ];
2205
-                if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.16.196', '172.31.1.169', '172.31.9.46'])) $req['proxy'] = env('CCH_PROXY');
2205
+                if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.30.167', '172.31.9.233', '172.31.42.197', '172.31.34.163'])) $req['proxy'] = env('CCH_PROXY');
2206
                 $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/linepoint/query', $req);
2206
                 $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/linepoint/query', $req);
2207
                 $resB = json_decode($response->getBody());
2207
                 $resB = json_decode($response->getBody());
2208
                 $data['memoIn'] = json_encode(array_merge($param, $logdata), JSON_UNESCAPED_UNICODE);
2208
                 $data['memoIn'] = json_encode(array_merge($param, $logdata), JSON_UNESCAPED_UNICODE);
2395
                     'Accept'       => '*/*',
2395
                     'Accept'       => '*/*',
2396
                 ]
2396
                 ]
2397
             ];
2397
             ];
2398
-            if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.16.196', '172.31.1.169', '172.31.9.46'])) $req['proxy'] = env('CCH_PROXY');
2398
+            if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.30.167', '172.31.9.233', '172.31.42.197', '172.31.34.163'])) $req['proxy'] = env('CCH_PROXY');
2399
             $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/tag/Tagging', $req);
2399
             $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/tag/Tagging', $req);
2400
             $res = $response->getBody();
2400
             $res = $response->getBody();
2401
             // 經由計算取得的完整 request JSON
2401
             // 經由計算取得的完整 request JSON
2910
                         'Accept'       => '*/*',
2910
                         'Accept'       => '*/*',
2911
                     ]
2911
                     ]
2912
                 ];
2912
                 ];
2913
-                if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.16.196', '172.31.1.169', '172.31.9.46'])) $req['proxy'] = env('CCH_PROXY');
2913
+                if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.30.167', '172.31.9.233', '172.31.42.197', '172.31.34.163'])) $req['proxy'] = env('CCH_PROXY');
2914
                 $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/linepoint/issue', $req);
2914
                 $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/linepoint/issue', $req);
2915
                 $resA = json_decode($response->getBody());
2915
                 $resA = json_decode($response->getBody());
2916
                 $data['memoIn'] = json_encode(array_merge($param, $logdata), JSON_UNESCAPED_UNICODE);
2916
                 $data['memoIn'] = json_encode(array_merge($param, $logdata), JSON_UNESCAPED_UNICODE);
2982
                         'Accept'       => '*/*',
2982
                         'Accept'       => '*/*',
2983
                     ]
2983
                     ]
2984
                 ];
2984
                 ];
2985
-                if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.16.196', '172.31.1.169', '172.31.9.46'])) $req['proxy'] = env('CCH_PROXY');
2985
+                if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.30.167', '172.31.9.233', '172.31.42.197', '172.31.34.163'])) $req['proxy'] = env('CCH_PROXY');
2986
                 $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/linepoint/query', $req);
2986
                 $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/linepoint/query', $req);
2987
                 $resB = json_decode($response->getBody());
2987
                 $resB = json_decode($response->getBody());
2988
                 $data['memoIn'] = json_encode(array_merge($param, $logdata), JSON_UNESCAPED_UNICODE);
2988
                 $data['memoIn'] = json_encode(array_merge($param, $logdata), JSON_UNESCAPED_UNICODE);