From 76e336129a8eff090e5fb48d1956404afa834fde Mon Sep 17 00:00:00 2001 From: liqianjin <949671634@qq.com> Date: Fri, 7 Apr 2023 15:32:50 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=E5=9B=A2?= =?UTF-8?q?=E9=98=9F=E6=95=B0=E9=87=8F=E6=94=B9=E4=B8=BAone=5Fchild=5Ffenx?= =?UTF-8?q?iao=5Fnum?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addon/fenxiao/model/Fenxiao.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addon/fenxiao/model/Fenxiao.php b/addon/fenxiao/model/Fenxiao.php index 28d6049..169629b 100644 --- a/addon/fenxiao/model/Fenxiao.php +++ b/addon/fenxiao/model/Fenxiao.php @@ -278,6 +278,9 @@ class Fenxiao extends BaseModel [ 'fenxiao f', 'm.member_id = f.member_id', 'left' ] ]; $list = model('member')->pageList($condition, $field, '', $page, $page_size, $alias, $join); + foreach($list['list'] as $key=>$item){ + $list['list'][$key]['one_child_num'] = 0; + } return $this->success($list); }