getContext()->getRequest(); $admin_id = $this->getContext()->getStorage()->read('admin_id'); // 接收信息 $id = $request->getParameter('id'); // 产品id $sql = "delete from lkt_freight where id = '$id' "; $db->delete($sql); $db->admin_record($admin_id,' 删除规则id为 '.$id.' 的信息',3); $res = array('status'=>1,'info'=>'成功!'); echo json_encode($res); } public function execute(){ return $this->getDefaultView(); } public function getRequestMethods(){ return Request :: NONE; } } ?>