|
|
@ -34,7 +34,9 @@ class Look_order extends CI_Controller {
|
|
|
|
//显示订单数量,如果大于阈值就显示错误
|
|
|
|
//显示订单数量,如果大于阈值就显示错误
|
|
|
|
public function status() {
|
|
|
|
public function status() {
|
|
|
|
$data = array();
|
|
|
|
$data = array();
|
|
|
|
$data['tour_count'] = $this->Orders_model->tour_count();
|
|
|
|
$tour_count = $this->Orders_model->tour_count();
|
|
|
|
|
|
|
|
$biz_count = $this->Orders_model->biz_count();
|
|
|
|
|
|
|
|
$data['tour_count'] = $tour_count + $biz_count;
|
|
|
|
if ($data['tour_count'] >= 550) {
|
|
|
|
if ($data['tour_count'] >= 550) {
|
|
|
|
$this->output->set_status_header(500);
|
|
|
|
$this->output->set_status_header(500);
|
|
|
|
}
|
|
|
|
}
|
|
|
|