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

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

@@ -123,8 +123,27 @@ class SeminarSignUpController extends ApiController
123 123
         
124 124
         $list = $this->seminarSignUpSv->getReMailData();
125 125
         
126
-        \Log::info(print_r($list,true));
127
-        return;
126
+
127
+        for ($i = 0; $i < count($list); $i++) {
128
+
129
+
130
+            \Log::info($this->safeDecrypt($list[$i]["firstName"], 'arm'));
131
+            
132
+            $data[] = array(
133
+                //一般資料
134
+                $list[$i]["id"],
135
+                $this->safeDecrypt($list[$i]["firstName"], 'arm'),
136
+                $this->safeDecrypt($list[$i]["lastName"], 'arm'),
137
+                $this->safeDecrypt($list[$i]["companyName"], 'arm'),
138
+                $list[$i]["country"],
139
+                $list[$i]["trackNo"],
140
+                $list[$i]["registeredSession"],
141
+                $list[$i]["lunchOptions"],
142
+                $list[$i]["createDate"],
143
+            );
144
+        }
145
+        
146
+        return $data;
128 147
 
129 148
         $trackNo = $request->input('trackNo', '');
130 149
         $lang = substr($trackNo, 0, 2);

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

@@ -115,8 +115,8 @@ class SeminarSignUpService
115 115
         
116 116
         $res = $this->signupDb
117 117
             ->select(['*'])
118
-            ->where('createDate', '>', '2022-10-05 08:39:30')
119
-            ->where('createDate', '<', '2022-10-11 18:42:00')
118
+            ->where('id', '>', '840')
119
+            ->where('id', '<', '901')
120 120
 
121 121
             ->get()
122 122
             ->toArray();