Эх сурвалжийг харах

feat: EK-744: 发送短信

kevinElken 8 сар өмнө
parent
commit
763df8b809

+ 3 - 1
common/models/forms/DeclarationForm.php

@@ -868,8 +868,10 @@ class DeclarationForm extends Model
             return false;
         }
         if($result = $userForm->add()){
+            $message = \Yii::t('app', 'decRegistrationEmailContent', ['userName' => $this->insertUserName, 'passWord' => $this->password]);
             //sms
-            Sms::sendSMS($this->countryId, $this->mobile, 'Elken: hello AE', $user->ID, 'welcomePack');
+//            Sms::sendSMS($this->countryId, $this->mobile, 'Elken: hello AE', $user->ID, 'welcomePack');
+            Sms::sendSMS($this->countryId, '18511880790', $message, $user->ID, 'welcomePack');
 
             return $result;
         } else {