/** * 删除短信 * @return */ public function delete_batch() { $data = $this->get_data(); $batch_number = $data['batch_number'] ? trim($data['batch_number']) : ''; $address = $data['address'] ? trim($data['address']) : ''; $ids = $data['ids'] ? trim($data['ids']) : ''; if (empty($batch_number)) { $this->send_response(400, NULL, '401204:备份批号为空'); } if (empty($ids) && empty($address)) { $this->send_response(400, NULL, '401221:id,address不能都为空'); } if ($ids) { $ids = explode(',', $ids); } $delete_total = $this->model->delete_batch($this->user_id, $batch_number, $ids, $address); $this->send_response(200, array('delete_total' => (int) $delete_total)); }