ソースを参照

20220926 信件內容-日文語系 更新

LuluFJ.Ho 2 年 前
コミット
f98e050dbe
共有1 個のファイルを変更した32 個の追加3 個の削除を含む
  1. 32
    3
      app/Http/Controllers/Api/SeminarSignUpController.php

+ 32
- 3
app/Http/Controllers/Api/SeminarSignUpController.php ファイルの表示

@@ -92,7 +92,8 @@ class SeminarSignUpController extends ApiController
92 92
                 $this->mailToUser_TW($firstName_orig, $lastName_orig, $companyName_orig, $companyEmail_orig, $backupEmail_orig, 
93 93
                     $phoneNumber_orig, $country, $registeredSession, $lunchOptions, $typeOfIndustry, $typeOfJob, $jobTitle, $trackOfInterest);
94 94
             } elseif ($lang=='JP') {
95
-                $this->mailToUser_JP($firstName_orig, $companyEmail_orig, $backupEmail_orig);
95
+                $this->mailToUser_JP($firstName_orig, $lastName_orig, $companyName_orig, $companyEmail_orig, $backupEmail_orig, 
96
+                $phoneNumber_orig, $country, /*$registeredSession, $lunchOptions, */$typeOfIndustry, $typeOfJob, $jobTitle, $trackOfInterest);
96 97
             } elseif ($lang=='KR') {
97 98
                 $this->mailToUser_KR($firstName_orig, $lastName_orig, $companyName_orig, $companyEmail_orig, $backupEmail_orig, 
98 99
                 $phoneNumber_orig, $country, /*$registeredSession, $lunchOptions, */$typeOfIndustry, $typeOfJob, $jobTitle, $trackOfInterest);
@@ -195,9 +196,37 @@ class SeminarSignUpController extends ApiController
195 196
         }
196 197
     }
197 198
 
198
-    public function mailToUser_JP(string $firstName='', string $companyEmail='', string $backupEmail='')
199
+    public function mailToUser_JP(
200
+        string $firstName='', 
201
+        string $lastName='', 
202
+        string $companyName='',
203
+        string $companyEmail='',
204
+        string $backupEmail='',
205
+        string $phoneNumber='',
206
+        string $country='',
207
+        // string $registeredSession='',
208
+        // string $lunchOptions='',
209
+        string $typeOfIndustry='',
210
+        string $typeOfJob='',
211
+        string $jobTitle='',
212
+        string $trackOfInterest=''
213
+        )
199 214
     {
200
-        $data = array('name'=>$firstName);
215
+        $data = array(
216
+            'firstName' => $firstName,
217
+            'lastName' => $lastName,
218
+            'companyName' => $companyName,
219
+            'companyEmail' => $companyEmail,
220
+            'backupEmail' => $backupEmail,
221
+            'phoneNumber' => $phoneNumber,
222
+            'country' => $country,
223
+            'registeredSession' => $registeredSession,
224
+            'lunchOptions' => $lunchOptions,
225
+            'typeOfIndustry' => $typeOfIndustry,
226
+            'typeOfJob' => $typeOfJob,
227
+            'jobTitle' => $jobTitle,
228
+            'trackOfInterest' => $trackOfInterest,
229
+        );
201 230
 
202 231
         if ($backupEmail) {
203 232
             \Mail::send(['text'=>'mailJP'], $data, function($message) use ($companyEmail, $firstName, $backupEmail) {