Quellcode durchsuchen

小遊戲復活

kyle vor 2 Jahren
Ursprung
Commit
d3e4598365

+ 2
- 2
app/Http/Controllers/Web/Api2021Controller.php Datei anzeigen

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

+ 1
- 2
app/Http/Services/Web/Api2021Service.php Datei anzeigen

@@ -295,8 +295,7 @@ class Api2021Service
295 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 299
             $response = $this->c->request('POST', env('API_BASE') . '/line/api/twpapi/contact/QueryQualification', $req);
301 300
             $res = $response->getBody();
302 301