多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
~~~ foreach ($list as &$value){ $from_time=Db::table('txsh_group_chat')->where(['user_id'=>$user_id,'group_id'=>$value['group_id']])->field('latest_time')->find(); if($from_time['latest_time']==null){ $from_time['latest_time']==null; } $value['count']=$text->get_group_count($value['group_id'],$from_time['latest_time'],$value['latest_time']); } ~~~ foreach($list as $value)是无法添加属性,如$value['count'],必须加上&即foreach ($list as &$value)