Ver Fonte

会员报单index 3报错

theo há 3 anos atrás
pai
commit
4fa98bcccb
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      frontendApi/modules/v1/controllers/UserController.php

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

@@ -435,7 +435,9 @@ class UserController extends BaseController {
             $isLocation = [1 => '左-', 2 => '右-'];
             if($allChildUser) {
                 foreach ($allChildUser as $child) {
-                    $isLocation[$child['RELATIVE_LOCATION']].= '满';
+                    if ($child['RELATIVE_LOCATION']<'3'){
+                        $isLocation[$child['RELATIVE_LOCATION']].= '满';
+                    }
                 }
             }
             $userInfo['isLocation'] = '('.implode(',',$isLocation).')';