Quellcode durchsuchen

暫時關閉 api

kyle vor 2 Jahren
Ursprung
Commit
1ec610547c

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

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

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

@@ -398,8 +398,8 @@ class Api2021Service
398 398
                 ->insert($d);
399 399
             $id = \DB::getPdo()->lastInsertId();
400 400
 
401
-            // 替用互打一次性標籤
402
-            $this->playerTag($lineId);
401
+            // 替用互打一次性標籤 testonly 暫時關閉
402
+//            $this->playerTag($lineId);
403 403
         } else {
404 404
             // 用戶的 LINE 資訊可能會更新,所以這個 API 還身兼更新資訊的功能
405 405
 //            $d = [