Explorar o código

会员报单index 3报错

theo %!s(int64=3) %!d(string=hai) anos
pai
achega
4fa98bcccb
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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).')';