소스 검색

小遊戲復活

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

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

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