Procházet zdrojové kódy

会员安置位置查询增加Null标识

kevin_zhangl před 3 roky
rodič
revize
10118346af

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

@@ -514,11 +514,12 @@ class UserController extends BaseController {
         if($user){
             $userInfo['REAL_NAME'] = $user['REAL_NAME'];
             $allChildUser = UserNetwork::getFirstFloorChildren($userId);
-            $isLocation = [1 => 'Left-', 2 => 'Right-'];
+            $isLocation = [1 => 'Left-Null', 2 => 'Right-Null'];
             if($allChildUser) {
                 foreach ($allChildUser as $child) {
                     if ($child['RELATIVE_LOCATION']<'3'){
-                        $isLocation[$child['RELATIVE_LOCATION']].= 'Full';
+//                        $isLocation[$child['RELATIVE_LOCATION']].= 'Full';
+                        $isLocation[$child['RELATIVE_LOCATION']] = str_replace('Null', 'Full', $isLocation[$child['RELATIVE_LOCATION']]);
                     }
                 }
             }