max hai 10 meses
pai
achega
8b7d3e50e9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      frontendApi/modules/v1/controllers/UserController.php

+ 1 - 1
frontendApi/modules/v1/controllers/UserController.php

@@ -627,7 +627,7 @@ SQL;
             $allData['data'][] = $post;
             if ($formModel->load($allData, '') && $result = $formModel->add()) {
                 //发送邮件
-                Email::sendRegistrationEmail($post['email'], $post['userName'], $post['password']);
+                Email::sendRegistrationEmail($post['email'], $post['insertUserName'], $post['password']);
                 return static::notice($result);//报单成功
             } else {
                 return static::notice(Form::formatErrorsForApi($formModel->getErrors()),400);