Просмотр исходного кода

20221013 重新存取 utm 參數

LuluFJ.Ho 2 лет назад
Родитель
Сommit
bf9bde600b

+ 3
- 2
app/Http/Controllers/Api/SeminarSignUpController.php Просмотреть файл

@@ -224,8 +224,9 @@ class SeminarSignUpController extends ApiController
224 224
     public function restoreUTMData()
225 225
     {
226 226
         
227
-        $list = $this->seminarSignUpSv->getReMailData();
228
-        
227
+        $list = $this->seminarSignUpSv->getUTMData();
228
+        \Log::info(print_r($list, true));
229
+        return $list;
229 230
         $returnData = array();
230 231
         for ($i = 0; $i < count($list); $i++) {
231 232
 

+ 1
- 0
app/Http/Services/Api/SeminarSignUpService.php Просмотреть файл

@@ -139,6 +139,7 @@ class SeminarSignUpService
139 139
         
140 140
         $res = $this->signupDb
141 141
             ->select(['id', 'media'])
142
+            ->where('id', '1')
142 143
 
143 144
             ->get()
144 145
             ->toArray();

+ 1
- 0
routes/api.php Просмотреть файл

@@ -9,6 +9,7 @@ Route::prefix('signup')->group(function () {
9 9
     Route::get('/getData', [SeminarSignUpController::class, 'getData']);
10 10
     Route::get('/mail', [SeminarSignUpController::class, 'mailToUser']);
11 11
     Route::get('/getReMailData', [SeminarSignUpController::class, 'getReMailData']);
12
+    Route::get('/restoreUTMData', [SeminarSignUpController::class, 'restoreUTMData']);
12 13
 });
13 14
 
14 15