diff --git a/show/chkserver.php b/show/chkserver.php index 122edef..8e40482 100644 --- a/show/chkserver.php +++ b/show/chkserver.php @@ -38,7 +38,7 @@ case "sync": //接收客户端传送过来的数据: $datas = json_decode($datas,true); if(count($datas) < 1) { - echoRs(1,"ok"); + echoRs(1,"ok"); exit; } @@ -129,7 +129,7 @@ case "info": } $data = $ids = $channels = array(); - + //查询饭堂 $rs = $db->get_all("select * from tb_dining_hall where enabled = 1 ".$where); if(empty($rs)){ @@ -376,10 +376,10 @@ case "icgetcode": echo json_encode($res); exit; // echoRs(1, 'ok', array('data' => $info)); - + //列出订单详情 - - + + break; case "facegetcode": $facecard = trim($_POST['facecard']); @@ -509,7 +509,7 @@ break; echoRs(0, '该饭堂不存在', array()); exit; } - $company_id = $company['id']; + $company_id = $company['company_id']; // $new_date = date('Y-m-d H:i:s'); // $new_time = date('H:i:s'); @@ -807,4 +807,4 @@ function get_today_dates($dining_hall_id) return $data; } -?> \ No newline at end of file +?>