예제 #1
0
 public function goods_top_end()
 {
     $goods_list = db_factory::query(sprintf(" select a.service_id  ,b.end_time from %switkey_service a left join %switkey_payitem_record b on a.service_id=b.obj_id\n\t\t\t\t where a.model_id=6 and a.goodstop=1 and b.obj_type='goods' and b.end_time<%d order by service_id desc ", TABLEPRE, TABLEPRE, time()));
     if (is_array($goods_list)) {
         foreach ($goods_list as $k => $v) {
             keke_shop_class::updateGoodsTop($v['service_id']);
         }
     }
 }