You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
zhishifufei_php/application/agent/controller/download/DataDownload.php

55 lines
1.8 KiB

<?php
// +----------------------------------------------------------------------
// | 天诚科技 [ 刘海东 17600099397赋能开发者,助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2020 https://www.tczxkj.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed 该系统并不是自由软件,未经许可不能去掉相关版权
// +----------------------------------------------------------------------
// | Author:甘肃天诚志信电子商务有限公司 刘海东 联系电话维系17600099397
// +----------------------------------------------------------------------
namespace app\agent\controller\download;
use app\agent\controller\AuthController;
use service\JsonService as Json;
use app\merchant\model\download\DataDownloadCategpry;
use app\merchant\model\download\DataDownload as DownloadModel;
use app\merchant\model\download\DataDownloadRecords;
use service\SystemConfigService;
use think\Url;
/**资料控制器
* Class DataDownload
* @package app\merchant\controller\download
*/
class DataDownload extends AuthController
{
/**
* 资料下载列表
*/
public function index()
{
$cate_list = DataDownloadCategpry::specialCategoryAll(2);
$this->assign('cate_list', $cate_list);
return $this->fetch();
}
/**
* 获取资料下载列表
*/
public function data_download_list()
{
$where = parent::getMore([
['start_time', ''],
['end_time', ''],
['status', 1],
['page', 1],
['limit', 20],
['cate_id', 0],
['is_show', ''],
['title', '']
]);
return Json::successlayui(DownloadModel::get_download_list($where));
}
}