Преглед на файлове

20220915 信件內容-韓文語系 更新 / fix 加密部分

LuluFJ.Ho преди 2 години
родител
ревизия
5e7951948e
променени са 2 файла, в които са добавени 76 реда и са изтрити 12 реда
  1. 39
    10
      app/Http/Controllers/Api/SeminarSignUpController.php
  2. 37
    2
      resources/views/mailKR.blade.php

+ 39
- 10
app/Http/Controllers/Api/SeminarSignUpController.php Целия файл

@@ -29,13 +29,13 @@ class SeminarSignUpController extends ApiController
29 29
         $firstName = $this->safeEncrypt($firstName_orig, 'arm');
30 30
 
31 31
         $lastName_orig = $request->input('lastName', '');
32
-        $lastName = $this->safeEncrypt($request->input('lastName_orig', ''), 'arm');
32
+        $lastName = $this->safeEncrypt($lastName_orig, 'arm');
33 33
         
34 34
         $companyName_orig = $request->input('companyName', '');
35
-        $companyName = $this->safeEncrypt($request->input('companyName_orig', ''), 'arm');
35
+        $companyName = $this->safeEncrypt($companyName_orig, 'arm');
36 36
         
37 37
         $companyEmail_orig = $request->input('companyEmail', '');
38
-        $companyEmail = $this->safeEncrypt($request->input('companyEmail_orig', ''), 'arm');
38
+        $companyEmail = $this->safeEncrypt($companyEmail_orig, 'arm');
39 39
         
40 40
         $backupEmail = $request->input('backupEmail', '');
41 41
         if (!is_null($backupEmail)) {
@@ -47,7 +47,7 @@ class SeminarSignUpController extends ApiController
47 47
         }
48 48
         
49 49
         $phoneNumber_orig = $request->input('phoneNumber', '');
50
-        $phoneNumber = $this->safeEncrypt($request->input('phoneNumber_orig', ''), 'arm');
50
+        $phoneNumber = $this->safeEncrypt($phoneNumber_orig, 'arm');
51 51
         
52 52
         $country = $request->input('country', '');
53 53
         $registeredSession = $request->input('registeredSession', '');
@@ -94,7 +94,8 @@ class SeminarSignUpController extends ApiController
94 94
             } elseif ($lang=='JP') {
95 95
                 $this->mailToUser_JP($firstName_orig, $companyEmail_orig, $backupEmail_orig);
96 96
             } elseif ($lang=='KR') {
97
-                $this->mailToUser_KR($firstName_orig, $companyEmail_orig, $backupEmail_orig);
97
+                $this->mailToUser_KR($firstName_orig, $lastName_orig, $companyName_orig, $companyEmail_orig, $backupEmail_orig, 
98
+                $phoneNumber_orig, $country, /*$registeredSession, $lunchOptions, */$typeOfIndustry, $typeOfJob, $jobTitle, $trackOfInterest);
98 99
             } else {
99 100
                 $this->mailToUser_EN($firstName_orig, $companyEmail_orig, $backupEmail_orig);
100 101
             }
@@ -214,20 +215,48 @@ class SeminarSignUpController extends ApiController
214 215
         }
215 216
     }
216 217
 
217
-    public function mailToUser_KR(string $firstName='', string $companyEmail='', string $backupEmail='')
218
+    public function mailToUser_KR(
219
+        string $firstName='', 
220
+        string $lastName='', 
221
+        string $companyName='',
222
+        string $companyEmail='',
223
+        string $backupEmail='',
224
+        string $phoneNumber='',
225
+        string $country='',
226
+        // string $registeredSession='',
227
+        // string $lunchOptions='',
228
+        string $typeOfIndustry='',
229
+        string $typeOfJob='',
230
+        string $jobTitle='',
231
+        string $trackOfInterest=''
232
+        )
218 233
     {
219
-        $data = array('name'=>$firstName);
234
+        $data = array(
235
+            'firstName' => $firstName,
236
+            'lastName' => $lastName,
237
+            'companyName' => $companyName,
238
+            'companyEmail' => $companyEmail,
239
+            'backupEmail' => $backupEmail,
240
+            'phoneNumber' => $phoneNumber,
241
+            'country' => $country,
242
+            // 'registeredSession' => $registeredSession,
243
+            // 'lunchOptions' => $lunchOptions,
244
+            'typeOfIndustry' => $typeOfIndustry,
245
+            'typeOfJob' => $typeOfJob,
246
+            'jobTitle' => $jobTitle,
247
+            'trackOfInterest' => $trackOfInterest,
248
+        );
220 249
 
221 250
         if ($backupEmail) {
222 251
             \Mail::send(['text'=>'mailKR'], $data, function($message) use ($companyEmail, $firstName, $backupEmail) {
223
-                $message->to($companyEmail, $firstName)->subject('등록이 완료되었습니다');
224
-                $message->cc($backupEmail, $firstName)->subject('등록이 완료되었습니다');
252
+                $message->to($companyEmail, $firstName)->subject('등록 확인 메일');
253
+                $message->cc($backupEmail, $firstName)->subject('등록 확인 메일');
225 254
                 $message->from(env('MAIL_USERNAME'),env('MAIL_FROM_NAME'));
226 255
 
227 256
             });
228 257
         } else {
229 258
             \Mail::send(['text'=>'mailKR'], $data, function($message) use ($companyEmail, $firstName) {
230
-                $message->to($companyEmail, $firstName)->subject('등록이 완료되었습니다');
259
+                $message->to($companyEmail, $firstName)->subject('등록 확인 메일');
231 260
                 $message->from(env('MAIL_USERNAME'),env('MAIL_FROM_NAME'));
232 261
 
233 262
             });

+ 37
- 2
resources/views/mailKR.blade.php Целия файл

@@ -1,3 +1,38 @@
1
-안녕하십니까 {{ $name }}
1
+{{ $firstName }} 귀하,
2 2
 
3
-등록이 완료되었습니다
3
+Arm Tech Symposia 2022에 등록해 주셔서 감사합니다.
4
+
5
+등록 내용은 Arm 내부 심사를 거쳐 행사 1-2주 전에 이메일로 알려드리겠습니다.
6
+
7
+하기 정보는 등록 시 작성해주신 정보입니다. 궁금한 점이 있으시면, 언제든지 문의해주세요!
8
+
9
+Arm Tech Symposia 행사 운영사무국
10
+
11
+ats2022korea@gmail.com
12
+
13
+02-6207-9409
14
+
15
+운영 시간 : 10:00 - 17:00 월요일 - 금요일
16
+
17
+
18
+이름:{{ $firstName }}
19
+
20
+성:{{ $lastName }}
21
+
22
+회사명:{{ $companyName }}
23
+
24
+회사 이메일 주소:{{ $companyEmail }}
25
+
26
+백업 이메일 주소:{{ $backupEmail }}
27
+
28
+전화번호:{{ $phoneNumber }}
29
+
30
+국가:{{ $country }}
31
+
32
+업종:{{ $typeOfIndustry }}
33
+
34
+직종:{{ $typeOfJob }}
35
+
36
+직책:{{ $jobTitle }}
37
+
38
+관심 있는 트랙 :{{ $trackOfInterest }}