소스 검색

20221013 補寄信(1005~1011)

LuluFJ.Ho 2 년 전
부모
커밋
c2447b6b78
2개의 변경된 파일23개의 추가작업 그리고 4개의 파일을 삭제
  1. 21
    2
      app/Http/Controllers/Api/SeminarSignUpController.php
  2. 2
    2
      app/Http/Services/Api/SeminarSignUpService.php

+ 21
- 2
app/Http/Controllers/Api/SeminarSignUpController.php 파일 보기

123
         
123
         
124
         $list = $this->seminarSignUpSv->getReMailData();
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
         $trackNo = $request->input('trackNo', '');
148
         $trackNo = $request->input('trackNo', '');
130
         $lang = substr($trackNo, 0, 2);
149
         $lang = substr($trackNo, 0, 2);

+ 2
- 2
app/Http/Services/Api/SeminarSignUpService.php 파일 보기

115
         
115
         
116
         $res = $this->signupDb
116
         $res = $this->signupDb
117
             ->select(['*'])
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
             ->get()
121
             ->get()
122
             ->toArray();
122
             ->toArray();