Commit 6e1caac1 authored by 734642908@qq.com's avatar 734642908@qq.com

添加广告平台

parent 807d3ef0
......@@ -26,7 +26,7 @@ class AdController extends BaseController
,'start_time'=>array('lt',date('Y-m-d H:i:s'))
);
$whereArr['_string'] = 'end_time is null or end_time > "'.date('Y-m-d H:i:s').'"';
$field = 'sysid as id,name,img,link,position,type';
$field = 'sysid as id,platform,name,img,link,position,type';
$adArr = M("yl_ad","",C("LEWAN_HEZI"))->where($whereArr)->field($field)->order('position')->select();
if(!empty($adArr)) {
$result = array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment