1,"errinfo"=>"用户未登录")); exit; } $pdo=conn(); $sql="CALL HT_GET_PRODUCTNAMES_BY_SEARCH('".$productName."')"; $result=$pdo->query($sql); $rowset=$result->fetchAll(PDO::FETCH_ASSOC); //if(strlen(trim($USER_ID))<=0){ // $data['code']='1'; // $data['info']='未登录'; //}else{ $data['code']='0'; $data['info']=''; $data['pro_names']=$rowset; //} echo json_encode($data); exit();