时间:2021-07-01 10:21:17 帮助过:4人阅读
{"code":200,"message":"success","data":[false]}
$sql_notice=mysql_query(sql语句)
$arrData =array();
while ($arrData[] = mysql_fetch_array($sql_notice))
{
$arrData;
}
$sData = array_values($arrData);
if(。。。){
Response::json(200,'success',$sData);
}else{
Response::json(400,'error',"");
}
$arrData =array();
while ($$row = mysql_fetch_array($sql_notice))
{
$arrData[] = $row;
}
if($arrData) {
Response::json(200,'success',$arrData);
}
.....