$info = $searchModel->getsVerticalCache ( $this->s, 'zhishi', $args['page'] );
$info['showPosition'] = '9';
if(isset($info['nous']) && is_array($info['nous']) && count($info['nous']) >1)
{
//只获取第一条数据 ,我明明是$info['nous'][0]; 获取第一个元素
结果还是会出现 多维数组?
$info['nous'] = $info['nous'][0];
$info['nous']->allClick = $formatAllClick;
$info['hasMore'] = '2';
}
else
{
$info['hasMore'] = '1';
}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...