Просмотр исходного кода

feat: NG-15: 新会员注册时增加国家与语言选项.

zhangl 1 год назад
Родитель
Сommit
825c4db94d
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      frontendApi/modules/v1/controllers/UserController.php

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

@@ -514,6 +514,7 @@ class UserController extends BaseController {
             $post['city'] = $post['city'] ? :1;
             $post['county'] = $post['county'] ? :1;
             $conUserName = trim($post['conUserName']); // 实际推荐人
+            $recUserName = trim($post['recUserName']);
 
             $post['cityName'] = trim($post['cityName']);
             $post['lgaName'] = trim($post['lgaName']);
@@ -527,7 +528,7 @@ class UserController extends BaseController {
 
             $post['conUserName'] = $bottomUser; // 安置人
             $post['recUserName'] = $conUserName; // 实际推荐人
-            $post['recUserName'] = trim($post['recUserName']); // 推荐人
+            $post['bottomUser'] = $recUserName; // 推荐人
 
             $post['location'] = 1;