Bladeren bron

小遊戲復活

kyle 2 jaren geleden
bovenliggende
commit
0359a29f73
2 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen
  1. 4
    4
      app/Http/Controllers/Web/Api2021Controller.php
  2. 1
    1
      app/Http/Services/Web/Api2021Service.php

+ 4
- 4
app/Http/Controllers/Web/Api2021Controller.php Bestand weergeven

206
 //        return response()->json(["succ" => true, "err" => '', "info" => []]);
206
 //        return response()->json(["succ" => true, "err" => '', "info" => []]);
207
 
207
 
208
         // testonly
208
         // testonly
209
-//        $this->aSv->debuglog('server', [
210
-//            'SERVER_ADDR' => $_SERVER['SERVER_ADDR'],
211
-//            'lineUserId' => $lineId,
212
-//        ]);
209
+        $this->aSv->debuglog('server', [
210
+            'SERVER_ADDR' => $_SERVER['SERVER_ADDR'],
211
+            'lineUserId' => $lineId,
212
+        ]);
213
 
213
 
214
         $this->sisLog['func'] = __FUNCTION__;
214
         $this->sisLog['func'] = __FUNCTION__;
215
         $this->sisLog['k'] = $lineId;
215
         $this->sisLog['k'] = $lineId;

+ 1
- 1
app/Http/Services/Web/Api2021Service.php Bestand weergeven

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