抖音seo矩阵系统源码分享-技术梳理

 抖音seo源码,抖音seo矩阵系统源码技术搭建,抖音seo源码技术开发思路梳理搭建

抖音seo矩阵系统源码分享-技术梳理_第1张图片
抖音账号矩阵系统部分源代码分享抖音seo矩阵系统源码分享-技术梳理_第2张图片

    if (empty($video_item)) {
                $this->displayJsonError('参数错误');
            }
            $curr_platform  = json_decode($video_item['dv_platform'], 1);
            $curr_platform  = is_null($curr_platform) ? [] : $curr_platform;
            $updata['dv_platform']  = json_encode(array_merge($curr_platform, $video_cfg));
            $ret    = $video_model->updateById($updata, $dv_id);
            //切换模式或更改场景组合数,则需要重新生成组合
            if($video_item['dv_video_mode'] != $video_mixed || $video_item['dv_video_use'] != $video_use){
                //清空素材排列组合及缓存视频
                $VideoMaterialPailie_model = new App_Model_Douyin_MysqlVideoMaterialPailieStorage();
                $VideoMaterialPailie_model->clearPailie($dv_id);
                //清除素材
                $video_meta_model   = new App_Model_Douyin_MysqlVideoMaterialStorage();
                $vm_where   = [
                    ['name' => 'dvm_ds_id', 'oper' => '=', 'value' => $this->sid],
                    ['name' => 'dvm_dv_id', 'oper' => '=', 'value' => $dv_id],
                ];
                $video_meta_list    = $video_meta_model->getList($vm_where, 0, 0);
                foreach ($video_meta_list as $item) {
                    //新旧模式相同,并且视频对应场景不大于新的场景数
                    if ($item['dvm_video_mixed_mode'] == $video_mixed && $item['dvm_scene'] <= $video_use) {
                        continue;
                        //与新模式不同,则清除
                    }
                    //场景顺序组合,减少了场景数
                    /*
                    if ($item['dvm_scene'] > $video_use) {

                    }
                    */
                    //智能混剪模式1,删除视频素材
                    if ($item['dvm_video_mixed_mode'] == 1 && $item['dvm_material_type'] == 1) {
                        $file_path  = PLUM_DIR_ROOT.$item['dvm_material_content'];
                        if (is_file($file_path)) {
                            unlink($file_path);
                        }
                    }
                    //视频素材删除ts素材
                    if ($item['dvm_material_type'] == 1) {
                        $file_path  = PLUM_DIR_ROOT.$item['dvm_material_videots'];
                        if (is_file($file_path)) {
                            unlink($file_path);
                        }
                    }
                    //视频素材及图片素材删除,其他素材保留
                    if (in_array($item['dvm_material_type'], [1,3])) {
                        $video_meta_model->deleteById($item['dvm_id']);
                    }

你可能感兴趣的:(抖音seo源码,开源,抖音账号矩阵系统源码)