diff --git a/backstage/application/api/controllers/api/Order.php b/backstage/application/api/controllers/api/Order.php index 2d4954e..19c1d69 100644 --- a/backstage/application/api/controllers/api/Order.php +++ b/backstage/application/api/controllers/api/Order.php @@ -57,13 +57,6 @@ class Order extends REST_Controller $total_price = $this->input->post('total_price'); $notes = $this->input->post('notes'); - if(empty($notes)){ - $this->response(array( - 'status' => 0, - 'message' => '请先填写备注', - 'data' => $data - ), REST_Controller::HTTP_OK); - } if ($this->user->type_id != USERTYPE_OFFICIAL) { if (floatval($total_price) >= 0) { } else { @@ -526,13 +519,7 @@ class Order extends REST_Controller $total_price = $this->input->post('total_price'); $notes = $this->input->post('notes'); - if(empty($notes)){ - $this->response(array( - 'status' => 0, - 'message' => '请先填写备注', - 'data' => $data - ), REST_Controller::HTTP_OK); - } + if ($this->user->type_id != USERTYPE_OFFICIAL) { if (floatval($total_price) >= 0) { } else {