|
|
@@ -18,15 +18,15 @@ class CfHotelInfo extends Backend |
|
|
|
{ |
|
|
|
|
|
|
|
/** |
|
|
|
* PaymentOrder模型对象 |
|
|
|
* @var \app\admin\model\PaymentOrder |
|
|
|
* CfHotelInfo模型对象 |
|
|
|
* @var \app\admin\model\CfHotelInfo |
|
|
|
*/ |
|
|
|
protected $model = null; |
|
|
|
|
|
|
|
public function _initialize() |
|
|
|
{ |
|
|
|
parent::_initialize(); |
|
|
|
$this->model = new \app\admin\model\PaymentOrder; |
|
|
|
$this->model = new \app\admin\model\CfHotelInfo; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@@ -41,7 +41,15 @@ class CfHotelInfo extends Backend |
|
|
|
* 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改 |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
public function getHotelList(){ |
|
|
|
$name=$this->request->post('name'); |
|
|
|
$keyValue=$this->request->post('keyValue'); |
|
|
|
$result= $this->model->getList($name,$keyValue); |
|
|
|
if($keyValue){ |
|
|
|
return json(['list' => $result]); |
|
|
|
} |
|
|
|
return json(['list' => $result]); |
|
|
|
} |
|
|
|
|
|
|
|
/****=========================================**/ |
|
|
|
/** |
|
|
|