|
@@ -78,56 +78,58 @@ class SeminarSignUpController extends ApiController
|
78
|
78
|
$overOrNot = $this->seminarSignUpSv->overLimitOrNot($trackNo); // true: 可報名 / false: 已額滿
|
79
|
79
|
$duplicatedOrNot = $this->seminarSignUpSv->duplicatedOrNot($trackNo, $companyEmail, $phoneNumber); // true: 可報名 / false: 已重複
|
80
|
80
|
|
81
|
|
- if ($overOrNot&&$duplicatedOrNot) {
|
82
|
|
-
|
83
|
|
- $this->seminarSignUpSv->insertData(
|
84
|
|
- $firstName,
|
85
|
|
- $lastName,
|
86
|
|
- $companyName,
|
87
|
|
- $companyEmail,
|
88
|
|
- $backupEmail,
|
89
|
|
- $phoneNumber,
|
90
|
|
- $country,
|
91
|
|
- $trackNo,
|
92
|
|
- $registeredSession,
|
93
|
|
- $lunchOptions,
|
94
|
|
- $typeOfIndustry,
|
95
|
|
- $typeOfJob,
|
96
|
|
- $jobTitle,
|
97
|
|
- $trackOfInterest,
|
98
|
|
- $areaOfInterest,
|
99
|
|
- $howToKnowAboutTheEvent,
|
100
|
|
- $consentAcceptEmail,
|
101
|
|
- $consentPrivacyPolicy,
|
102
|
|
- $media,
|
103
|
|
- $utm_source,
|
104
|
|
- $utm_medium,
|
105
|
|
- $utm_content,
|
106
|
|
- $utm_term,
|
107
|
|
- $utm_campaign,
|
108
|
|
- );
|
109
|
|
- $res = '報名成功';
|
110
|
|
-
|
111
|
|
- if ($lang=='TP'||$lang=='HS') {
|
112
|
|
- $this->mailToUser_TW($firstName_orig, $lastName_orig, $companyName_orig, $companyEmail_orig, $backupEmail_orig,
|
113
|
|
- $phoneNumber_orig, $country, $registeredSession, $lunchOptions, $typeOfIndustry, $typeOfJob, $jobTitle, $trackOfInterest);
|
114
|
|
- } elseif ($lang=='JP') {
|
115
|
|
- $this->mailToUser_JP($firstName_orig, $lastName_orig, $companyName_orig, $companyEmail_orig, $backupEmail_orig,
|
116
|
|
- $phoneNumber_orig, $country, /*$registeredSession, $lunchOptions, */$typeOfIndustry, $typeOfJob, $jobTitle, $trackOfInterest);
|
117
|
|
- } elseif ($lang=='KR') {
|
118
|
|
- $this->mailToUser_KR($firstName_orig, $lastName_orig, $companyName_orig, $companyEmail_orig, $backupEmail_orig,
|
119
|
|
- $phoneNumber_orig, $country, /*$registeredSession, $lunchOptions, */$typeOfIndustry, $typeOfJob, $jobTitle, $trackOfInterest);
|
120
|
|
- } else {
|
121
|
|
- $this->mailToUser_EN($firstName_orig, $companyEmail_orig, $backupEmail_orig);
|
122
|
|
- }
|
|
81
|
+ // if ($overOrNot&&$duplicatedOrNot) {
|
|
82
|
+
|
|
83
|
+ // $this->seminarSignUpSv->insertData(
|
|
84
|
+ // $firstName,
|
|
85
|
+ // $lastName,
|
|
86
|
+ // $companyName,
|
|
87
|
+ // $companyEmail,
|
|
88
|
+ // $backupEmail,
|
|
89
|
+ // $phoneNumber,
|
|
90
|
+ // $country,
|
|
91
|
+ // $trackNo,
|
|
92
|
+ // $registeredSession,
|
|
93
|
+ // $lunchOptions,
|
|
94
|
+ // $typeOfIndustry,
|
|
95
|
+ // $typeOfJob,
|
|
96
|
+ // $jobTitle,
|
|
97
|
+ // $trackOfInterest,
|
|
98
|
+ // $areaOfInterest,
|
|
99
|
+ // $howToKnowAboutTheEvent,
|
|
100
|
+ // $consentAcceptEmail,
|
|
101
|
+ // $consentPrivacyPolicy,
|
|
102
|
+ // $media,
|
|
103
|
+ // $utm_source,
|
|
104
|
+ // $utm_medium,
|
|
105
|
+ // $utm_content,
|
|
106
|
+ // $utm_term,
|
|
107
|
+ // $utm_campaign,
|
|
108
|
+ // );
|
|
109
|
+ // $res = '報名成功';
|
|
110
|
+
|
|
111
|
+ // if ($lang=='TP'||$lang=='HS') {
|
|
112
|
+ // $this->mailToUser_TW($firstName_orig, $lastName_orig, $companyName_orig, $companyEmail_orig, $backupEmail_orig,
|
|
113
|
+ // $phoneNumber_orig, $country, $registeredSession, $lunchOptions, $typeOfIndustry, $typeOfJob, $jobTitle, $trackOfInterest);
|
|
114
|
+ // } elseif ($lang=='JP') {
|
|
115
|
+ // $this->mailToUser_JP($firstName_orig, $lastName_orig, $companyName_orig, $companyEmail_orig, $backupEmail_orig,
|
|
116
|
+ // $phoneNumber_orig, $country, /*$registeredSession, $lunchOptions, */$typeOfIndustry, $typeOfJob, $jobTitle, $trackOfInterest);
|
|
117
|
+ // } elseif ($lang=='KR') {
|
|
118
|
+ // $this->mailToUser_KR($firstName_orig, $lastName_orig, $companyName_orig, $companyEmail_orig, $backupEmail_orig,
|
|
119
|
+ // $phoneNumber_orig, $country, /*$registeredSession, $lunchOptions, */$typeOfIndustry, $typeOfJob, $jobTitle, $trackOfInterest);
|
|
120
|
+ // } else {
|
|
121
|
+ // $this->mailToUser_EN($firstName_orig, $companyEmail_orig, $backupEmail_orig);
|
|
122
|
+ // }
|
123
|
123
|
|
124
|
|
- } elseif (!$overOrNot) {
|
|
124
|
+ // } elseif (!$overOrNot) {
|
125
|
125
|
|
126
|
|
- $res = '已達報名上限';
|
127
|
|
- } elseif (!$duplicatedOrNot) {
|
|
126
|
+ // $res = '已達報名上限';
|
|
127
|
+ // } elseif (!$duplicatedOrNot) {
|
|
128
|
+
|
|
129
|
+ // $res = '已重複報名';
|
|
130
|
+ // }
|
|
131
|
+ $res = '報名已結束';
|
128
|
132
|
|
129
|
|
- $res = '已重複報名';
|
130
|
|
- }
|
131
|
133
|
$data = [
|
132
|
134
|
'res' => $res,
|
133
|
135
|
];
|