Browse Source

[小遊戲]可以一天內不斷玩遊戲的測試帳號

kyle 2 years ago
parent
commit
efa6ffc010
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      app/Http/Controllers/Web/Api2021Controller.php

+ 2
- 1
app/Http/Controllers/Web/Api2021Controller.php View File

@@ -307,7 +307,8 @@ class Api2021Controller extends Controller
307 307
 
308 308
         // 業務驗證(是否今日已玩過遊戲與簽到)
309 309
 //        if (false) { // testonly for 壓測
310
-        if ($lineId != 'Ud2534d6e1eed9cee2c919a993443352b') {
310
+//        if ($lineId != 'Ud2534d6e1eed9cee2c919a993443352b') {
311
+        if ($lineId == $this->settingManagementSv->getSetting()['GAME_TESTING_LINE_ID']) {
311 312
             if (!$this->aSv->canPlay($lineId)) {
312 313
                 $this->sisLog['memoIn'] = json_encode(['error' => 'logical'], JSON_UNESCAPED_UNICODE);
313 314
                 $this->sisLog['memoOut'] = json_encode(['msg' => '今日已玩過遊戲或者活動結束'], JSON_UNESCAPED_UNICODE);