|
@@ -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
|
});
|