瀏覽代碼

会员报单index 3报错

theo 3 年之前
父節點
當前提交
4fa98bcccb
共有 1 個文件被更改,包括 3 次插入1 次删除
  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).')';