望各位开发者谨慎开发:
人力、服务器、核心技术、对接各平台官方api接口、上线、市场反馈 周期可不短啊
打包资源库:
this->buildBreadcrumbs($breadcrumbs);
$this->output['tab_list'] = [
['name' => '视频素材', 'href' => '/dydqtshoppc/video/attachment/type/3', 'active' => $type == 3 ? true : false],
['name' => '音频素材', 'href' => '/dydqtshoppc/video/attachment/type/2', 'active' => $type == 2 ? true : false],
['name' => '图片素材', 'href' => '/dydqtshoppc/video/attachment/type/1', 'active' => $type == 1 ? true : false],
];
}
switch ($type) {
case 1 :
$media_type = ['type' => 'image', 'metarial' => 3];
break;
case 2 :
$media_type = ['type' => 'audio', 'metarial' => 2];
break;
case 3 :
$media_type = ['type' => 'video', 'metarial' => 1];
break;
default :
$media_type = ['type' => 'video', 'metarial' => 1];
}
$group_id = $this->request->getStrParam('group_id');
$keyword = $this->request->getStrParam('keyword');
$time_range = $this->request->getStrParam('time_range');
$play_min = $this->request->getFloatParam('play_min', 0);
$play_max = $this->request->getFloatParam('play_max', 0);
$this->output['play_min'] = $play_min;
$this->output['play_max'] = $play_max;
$column = $this->request->getStrParam('column');
$order = $this->request->getStrParam('order', 'asc');
$this->output['column'] = $column;
$this->output['order'] = $order;
$group_model = new App_Model_Shop_MysqlAttachmentGroupStorage();
$where = [
['name' => 'dsa_ds_id', 'oper' => '=', 'value' => $this->sid],
['name' => 'dsa_type', 'oper' => '=', 'value' => $type]
];
if(!empty($time_range)){
$add_time_range_arr = explode('~',$time_range);
$where[] = ['name' => 'dsa_create_time', 'oper' => '>=', 'value' => strtotime($add_time_range_arr[0])];
$where[] = ['name' => 'dsa_create_time', 'oper' => '<', 'value' => strtotime($add_time_range_arr[1]) + 86400];
}
if (!empty($group_id)) {
$group_id = explode(',', $group_id);
if (count($group_id) > 1) {
$gids = $group_id;