Przeglądaj źródła

会员报单index 3报错

theo 3 lat temu
rodzic
commit
4fa98bcccb

+ 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).')';