增加商务订单数量报警

hotfix/远程访问多媒体中心
LiaoYijun 7 years ago
parent 0809ac62c0
commit 292c91c8f1

@ -34,7 +34,9 @@ class Look_order extends CI_Controller {
//显示订单数量,如果大于阈值就显示错误
public function status() {
$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) {
$this->output->set_status_header(500);
}

Loading…
Cancel
Save