抖音seo优化,抖音seo源码开发,抖音排名系统源码开发展示实例:
思路:抖音seo源码,抖音seo矩阵系统底层框架上支持了从ai视频混剪,视频批量原创产出,云存储批量视频制作,账号矩阵,视频一键分发,站内实现关键词、短视频批量搜索排名,小程序管理,到同城爆客,小程序管理,智能锁客,企业号管理等多个大板块。
$row = self::$register_model->getRow(self::$sr_where);if ($row) {// $row['status'] = 3;$thirdInfo = $this->getCateById($row['sr_category_code']);$secondInfo = $this->getCateById($thirdInfo->Spid);$firstInfo = $this->getCateById($thirdInfo->Fpid);$row['cate_name'] = $firstInfo->Name . '-->' . $secondInfo->Name . '-->' . $thirdInfo->Name;$row['sr_registered_province_name'] = $this->area_obj->findCityNameByCode($row['sr_registered_province_code'])[0]['aa_name'];$row['sr_registered_city_name'] = $this->area_obj->findCityNameByCode1($row['sr_registered_city_code']);$province_id = $row['sr_province_id'];$city_id = $row['sr_city_id'];$third_id = $row['sr_category_code'];$second_id = $thirdInfo->Spid;$first_id = $thirdInfo->Fpid;
} else {$province_id = 0;$city_id = 0;$third_id = 0;$second_id = 0;$first_id = 0;
}$this->output['third_id'] = $third_id;
$this->output['second_id'] = $second_id;
$this->output['first_id'] = $first_id;
$this->output['province_id'] = $province_id;
$this->output['city_id'] = $city_id;
$this->output['row_info'] = $row;
$this->displaySmarty('dydqtshoppc/register/register.html');
代码展示:
class App_Controller_Dydqtshoppc_VideoController extends App_Controller_Dydqtshoppc_InitController {
const VIDEO_PLAY_POSTER = "/public/dydqt/img/video-zw.png";
//支持的视频平台
private $platform = [
'dou_yin' => '抖音',
'kuai_shou' => '快手',
'bai_jia_hao' => '好看视频',
'xiao_hong_shu'=> '小红书',
'xi_gua' => '西瓜',
'tou_tiao' => '头条',
'bili_bili' => '哔哩哔哩',
];
/*
* AI视频创意工作台
*/
public function indexAction() {
//面包屑
$breadcrumbs = [
['title' => 'AI视频创意', 'link' => '#zhyy'],
['title' => '工作台', 'link' => '/video/index'],
];
$this->buildBreadcrumbs($breadcrumbs);
//视频数量统计
$collect_model = new App_Model_Douyin_MysqlCollectShopStorage();
$collect_data = $collect_model->getCollectSurplusBySid($this->sid);
//视频创意统计
$video_model = new App_Model_Douyin_MysqlVideoStorage();
$vt_where = [
['name' => 'dv_s_id', 'oper' => '=', 'value' => $this->sid]
];
$video_total = $video_model->getCount($vt_where);
//素材数量统计
$attachment_model = new App_Model_Douyin_MysqlShopAttachmentStorage();
$attachment_count = $attachment_model->getTotalByGroup($this->sid);
$count_data = [
'image_count' => 0,
'image_size' => '0B',
'audio_count' => 0,
'audio_size' => '0B',
'video_count' => 0,
'video_size' => '0B',
];
foreach ($attachment_count as $count) {
switch ($count['dsa_type']) {
case 1 :
$count_data['image_count'] = $count['total'];
$count_data['image_size'] = plum_compute_byte($count['size']);
break;
case 2 :
$count_data['audio_count'] = $count['total'];
$count_data['audio_size'] = plum_compute_byte($count['size']);
break;
case 3 :
$count_data['video_count'] = $count['total'];
$count_data['video_size'] = plum_compute_byte($count['size']);
break;
}
}
$count_data['video_remain'] = $collect_data['cs_surplus'];
$count_data['video_create'] = $collect_data['cs_rest_num'];
$count_data['video_release']= $collect_data['cs_scan_count'];
$count_data['video_download'] = $collect_data['cs_download_num'];
$count_data['video_total'] = $video_total;
$this->output['count_data'] = $count_data;
if ($this->front_module == 'eui') {
$this->displaySmarty('dspui/video/index.html');
} else {
$this->displaySmarty('dydqtshoppc/video/index.tpl');
}
}