测试代码

<pre lay-lang="PHP" class="layui-code" skin="notepad">function getMainCourse(){

    $dataWhere['pid']=array('eq',0);
    $dataWhere['del']=array('eq',0);
    $data=D($this-&gt;tableName)-&gt;where($dataWhere)-&gt;select();
    return $data;
}</pre>