...
|
...
|
@@ -16,7 +16,8 @@ use think\Validate; |
|
|
class ChitController extends AdminBaseController
|
|
|
{
|
|
|
public function index(){
|
|
|
$data1=Db::name('page_html')->where('id',5)->whereOr(['id'=>6,'id'=>4])->select();
|
|
|
$where['id'] = ['in'=>[4,5,6]];
|
|
|
$data1=Db::name('page_html')->where($where)->select();
|
|
|
$id = $this->request->param('id') ? $this->request->param('id') : $data1[0]['id'];
|
|
|
$data=Db::name('page_html')
|
|
|
->where('id',$id)
|
...
|
...
|
|