Commit 56ddfe53 authored by 734642908@qq.com's avatar 734642908@qq.com

调整排序

parent 0cbe5366
......@@ -20,7 +20,7 @@ class AdController extends BaseController
);
} else {
$redis = S(C('REDIS'));
$id = $redis->ZREVRANGE('ylc_ad_id',0,-1);
$id = $redis->ZRANGE('ylc_ad_id',0,-1);
foreach($id as $key=>$val) {
$arr = json_decode($redis->hget('ylc_ad_list',$val),true);
$startTime = $arr['start_time'] < date('Y-m-d H:i:s');
......
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