getRecommendTemplate(6); $result['recommend_voucher'] = $recommend_voucher; //平台代金券 $where = array(); $where[] = array('mallvouchertemplate_startdate', '<', TIMESTAMP); $where[] = array('mallvouchertemplate_enddate', '>', TIMESTAMP); $mallvoucherlist = model('mallvouchertemplate')->getMallvouchertemplateList($where, 6); $result['mall_voucher'] = $mallvoucherlist; } //开启积分兑换功能后查询推荐的热门兑换商品列表 if (config('ds_config.pointprod_isuse') == 1) { //热门积分兑换商品 $recommend_pointsprod = model('pointprod')->getRecommendPointProd(10); $result['recommend_pointsprod'] = $recommend_pointsprod; } ds_json_encode(10000, '', $result); } }