Year: 2018
-
Post Views: 17 1. The design of the database structure, a resource table, a video file upload table of a Penguin number, and a transaction table of a penguin. The structure is as follows: 2. The upload of resources is implemented based on the queue, so the resource data will be stored in the resource table first, and then the…
-
Post Views: 15 1. HTML escape characters appear in SyntaxHighlighter 3.x of WordPress 4.9.8, and newline tags are automatically added, etc., as shown in Figure 1 2. The expected format should not appear HTML escape characters, as shown in Figure 2 3. For a long time, there were no HTML escape characters. I am not sure whether it was caused…
-
Post Views: 13 1. Configuration file \channel-pub-api\build\c_files\etc\supervisord.d\yii-qq-transaction-video-sync.ini 2. In the console command script, run once, write 1 file, the code is as follows 3. After the development environment is upgraded, check the directory /sobey/www/channel-pub-api/console/runtime/ . 4. The current requirement is that after running once, run the console command script again after 60 seconds, and finally decide to implement the Sleep…
-
Post Views: 61 1. By configuring the additional event processor, edit \environments\dev\common\config\main-local.php, \environments\prod\common\config\main-local.php, as shown in Figure 1 2. Edit \QQ\RESTS\QQ_CW_APP\IndexAction.php, an entry of a push queue 3. Edit \Common\Services\AssetService.php, copy the source resource file to the resource directory published by the channel, after the queue task is successfully executed, call the corresponding service, otherwise, insert the release log (asynchronous)…
-
Post Views: 8 1. When executing .\nginx -s reload, prompt: nginx:[emerg]host not found in upstream ‘api.aims-api.localhost’ in c:/nginx-1.10.1/conf/vhosts/aims.conf:14, as shown in Figure 1 2. Check lines 13, 14, and 15 of c:/nginx-1.10.1/conf/vhosts/aims.conf 3. Check C:\Windows\System32\drivers\etc\hosts and find that 127.0.0.1 api.aims-api.localhost has been deleted because of the Windows 10 upgrade 4. Overwrite the previously backed up hosts file to C:\Windows\System32\Drivers\etc\hosts, as…
-
Post Views: 15 1,http://wmpublish.mp.sztv.com.cn:8026/wx/robots.txt, the response is successful, indicating that the configuration of nginx is correct 2,http://wmpublish.mp.sztv.com.cn:8026/v1/channel-app-sources?group_id=channel, the response failed, no input file specified 3. Run the command in the container and view the nginx error log, as shown in Figure 1 4. Run the command in the container, check the contents of the file, and find that the file…
-
Post Views: 13 1. Configuration file: \common\config\params-local.php, self-media as the source 2. Create a new service class, \Common\Services\AssetService.php to implement a static method: CopyAssets 3. Reference the service class, \common\services\AssetService.php, call the static method: CopyAssets 4. After running the method, print out $AssetServiceResult 5. Check the copied directory and files, which are in line with expectations, as shown in Figure…
-
Post Views: 15 1. Reference URL:https://docs.phpmyadmin.net/zh_CN/latest/setup.html#installing-using-composer 2. Install and run the command based on composer, as shown in Figure 1 3. Enter the phpmyadmin-localhost directory, update phpmyadmin to the latest version, and run the command, as shown in Figure 2 4. Use the installer to generate the configuration file: config.inc.php, open the browser and use the /setup suffix to access,…