Douyin Matrix System Source Code Open Source Deployment Sharing (3)

Table of contents

I. Overview:

2. The purpose of account matrix construction:

 3. The source code development steps of Douyin matrix system

4. Function planning

 5. Code development display


I. Overview:

The vibrato matrix system refers to the operation of multiple accounts to subdivide the content and characteristics of the accounts, and the mutual drainage and promotion between the accounts to form a multi-dimensional promotion surface to help users better understand the content of short videos. You can also better grasp the trend and development of short videos.

2. The purpose of account matrix construction:

1. Increase the probability of popular models With the same video content and the same type of video, it is normal for one video to become popular while the other video is not, so we need to create a matrix account to reduce the Risk of luck.

2. The increase in vertical traffic Douyin has its own review mechanism, because our matrix number is in the same field, so the fan positioning is very accurate, the purpose is to generate more traffic.

3. The problem of cost Suppose we need 600 yuan to shoot a video, divide them into 10 videos and publish them on 10 accounts, the cost of that video will be reduced to 60 yuan.

4. Save a lot of time and cost. Our goal is to seize the traffic bonus period of Douyin.

5. Accounts should be diversified We can also adjust the direction of the video at any time.

 3. The source code development steps of Douyin matrix system

Since the Douyin matrix system is a commercial system and its source code is not public, we cannot provide complete development and deployment steps. However, we can offer some general advice and steps to help you understand how to develop and deploy a similar system.

  1. Identify needs and capabilities

First, you need to clarify your needs and capabilities in order to determine which modules and components you need to develop. The vibrato matrix system has many functional modules, including video production, video editing, music synthesis, Easter eggs and so on. You need to determine which modules and components to develop according to your own needs.

  1. Choose technology stack

According to your needs and functions, choose the appropriate technology stack, such as Java, Python, node.js, etc. You also need to consider the choice of technologies for databases, servers, caching, etc.

  1. develop code

According to the requirements and functions, start developing the code. Before development, it is necessary to design the system architecture and database structure, and select appropriate design patterns and algorithms according to the needs.

  1. testing and debugging

After development is complete, testing and debugging are performed to ensure that the system is functioning properly. You need to use various testing tools and methodologies such as unit testing, integration testing, performance testing, and more.

  1. deployment system

After testing and debugging, you need to prepare the server and environment, and deploy the system to production. You need to consider issues such as security, scalability, and reliability. You'll also configure the server and database, and set up monitoring and logging for the system.

4. Function planning

1. Multi-platform multi-account one-stop management

2. Batch editing of original videos (self-developed logic)

3. Batch distribution of videos on multiple platforms

4. Batch collection of leads

5. Intelligent online customer service reply

6. Douyin applet function docking, enhance private domain conversion

7. Fan portrait analysis and statistics

 5. Code development display

 

$daid = $this->request->getIntParam('daid', 0);
        //应用类型输出
        $where = [
            ['name' => 'cl_ds_id', 'oper' => '=', 'value' => $this->sid],
        ];
        if (!empty($daid)) {
            $where[] = ['name' => 'dl_qyh_uid', 'oper' => '=', 'value' => $daid];
        }
        $this->output['enter_id'] = $daid;
        $sort = ['cl_create_time' => 'DESC'];

        $chat_list_model = new App_Model_Douyin_MysqlChatListStorage();
        $chat_result = $chat_list_model->getList($where, $this->index, $this->count, $sort);

        $intent_model = new App_Model_Douyin_MysqlIntentUserStorage();
        #$account_model  = new App_Model_Douyin_MysqlDyAccountStorage();

        $chat_list = [];
        foreach ($chat_result as $item) {
            #$account    = $account_model->getRowByIdSid($item['cl_qyh_uid'], $this->sid);
            $intention = $intent_model->getUserByOpenId($this->sid, $item['cl_from_openid']);

            $each = [
                'user_nickname' => empty($intention) ? '匿名' : $intention['iu_nickname'],
                'user_avatar' => empty($intention) ? parent::TEMPLATE_PLACEHOLDER_IMAGE : $intention['iu_avatar'],
                'user_newmsg' => $item['cl_new_text'],
                'user_newtime' => date('Y-m-d H:i:s', $item['cl_new_time']),
                'user_openid' => $item['cl_from_openid'],
                'qyh_uid' => $item['cl_qyh_uid'],
                'undo_count' => $item['cl_undo_count'],
            ];
            array_push($chat_list, $each);
        }

        $this->displayJson($chat_list);

$from_openid = $this->request->getStrParam('from_openid');
        $qyh_uid = $this->request->getIntParam('qyh_uid');

        $letter_model = new App_Model_Douyin_MysqlLetterStorage();
        $detail_result = $letter_model->getChatListOrder($from_openid, $qyh_uid, $this->sid, $this->index, $this->count);

        $chat_detail = [];
        foreach ($detail_result as $item) {
            $each = [
                'msg_type' => $item['dl_msg_type'],
                'msg_content' => $item['dl_msg_content'],
                'msg_time' => date('Y-m-d H:i:s', $item['dl_create_time']),
                'send_receive' => intval($item['dl_send_receive']),    //1收到的消息,2发送的消息
            ];

            array_push($chat_detail, $each);
        }
        $account_model = new App_Model_Douyin_MysqlDyAccountStorage();
        $qyh_account = $account_model->getRowByIdSid($qyh_uid, $this->sid);
        $intent_model = new App_Model_Douyin_MysqlIntentUserStorage();
        $from_account = $intent_model->getUserByOpenId($this->sid, $from_openid, $qyh_uid);

        $return_data = [
            'from_user' => [
                'nickname' => empty($from_account) ? '匿名' : $from_account['iu_nickname'],
                'avatar' => empty($from_account) ? parent::TEMPLATE_PLACEHOLDER_IMAGE : $from_account['iu_avatar'],
                'openid' => $from_openid,
            ],
            'to_user' => [
                'nickname' => $qyh_account['da_nickname'],
                'avatar' => $qyh_account['da_avatar'],
                'qyh_uid' => $qyh_uid,
            ],
            'chat_detail' => $chat_detail
        ];
        $chat_list_model = new App_Model_Douyin_MysqlChatListStorage();
        $cl_where = [
            ['name' => 'cl_ds_id', 'oper' => '=', 'value' => $this->sid],
            ['name' => 'cl_qyh_uid', 'oper' => '=', 'value' => $qyh_uid],
            ['name' => 'cl_from_openid', 'oper' => '=', 'value' => $from_openid],
        ];
        $chat_list_model->updateValue(['cl_undo_count' => 0], $cl_where);
        $this->displayJson($return_data);

 

Guess you like

Origin blog.csdn.net/buda_l/article/details/131552499