소스 검색

小遊戲復活

kyle 2 년 전
부모
커밋
d3e4598365
2개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 2
    2
      app/Http/Controllers/Web/Api2021Controller.php
  2. 1
    2
      app/Http/Services/Web/Api2021Service.php

+ 2
- 2
app/Http/Controllers/Web/Api2021Controller.php 파일 보기

223
 //        ]);
223
 //        ]);
224
 
224
 
225
         // 業務驗證(是否加入LINE帳號的好友) [不存在 cookie 的時候就要進直通查詢,造成每天只要最多一次查詢就好]
225
         // 業務驗證(是否加入LINE帳號的好友) [不存在 cookie 的時候就要進直通查詢,造成每天只要最多一次查詢就好]
226
-//        if (!Cookie::get('gamecc')) {
227
-        if (false) { // testonly
226
+        if (!Cookie::get('gamecc')) {
227
+//        if (false) { // testonly
228
 //        if (!$this->aSv->isAuthUserExists($lineId)) { // 用資料庫檢查
228
 //        if (!$this->aSv->isAuthUserExists($lineId)) { // 用資料庫檢查
229
             if (!$this->aSv->lineFriendCheck($lineId)) {
229
             if (!$this->aSv->lineFriendCheck($lineId)) {
230
                 $this->sisLog['memoIn'] = json_encode(['error' => 'logical'], JSON_UNESCAPED_UNICODE);
230
                 $this->sisLog['memoIn'] = json_encode(['error' => 'logical'], JSON_UNESCAPED_UNICODE);

+ 1
- 2
app/Http/Services/Web/Api2021Service.php 파일 보기

295
                 'connect_timeout' => 10, // Connection timeout
295
                 'connect_timeout' => 10, // Connection timeout
296
             ];
296
             ];
297
 
297
 
298
-            if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.16.196', '172.31.11.96', '172.31.13.29'])) $req['proxy'] = env('CCH_PROXY');
299
-//            if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.16.196'])) $req['proxy'] = env('CCH_PROXY');
298
+            if (!in_array($_SERVER['SERVER_ADDR'], ['172.31.30.167', '172.31.11.96', '172.31.13.29'])) $req['proxy'] = env('CCH_PROXY');
300
             $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/contact/QueryQualification', $req);
299
             $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/contact/QueryQualification', $req);
301
             $res = $response->getBody();
300
             $res = $response->getBody();
302
 
301