Browse Source

回复列表接口

dev
nizongfeng 3 years ago
parent
commit
601e339c04
1 changed files with 12 additions and 4 deletions
  1. +12
    -4
      application/admin/controller/CfHotelInfo.php

+ 12
- 4
application/admin/controller/CfHotelInfo.php View File

@@ -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]);
}

/****=========================================**/
/**


Loading…
Cancel
Save