永夜 Blog

PUT http://api.channel-pub-api.localhost/qq/v1/qq-cw-apps/148d4df6eba311e899f654ee75d2ebc1?group_id=spider 时,贵响应成功 0

In Yii 2, when updating the model, when a field does not exist, the model is not updated (default implementation), when a field exists and its value is empty (assigned to the old value of the attribute), the implementation of the model is not updated

Post Views: 17 1. Gethttp://api.channel-pub-api.localhost/qq/v1/qq-cw-apps/edit/148d4df6eba311e899f654ee75d2ebc1?group_id=spider, the response is as follows, based on security reasons, reset the client secret to an empty string 2, therefore, PUThttp://api.channel-pub-api.localhost/qq/v1/qq-cw-apps/148d4df6eba311e899f654ee75d2ebc1?group_id=spider, if the value of client_secret is not updated, its...

在企鹅号后台查看我的素材,视频文件已经分片上传成功 0

The implementation process of video file sharding upload based on Penguin, including queue, file slice, while loop, etc.

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:...

之前很长一段时间内皆是未出现 html 转义字符的,不确定是因为升级还是什么原因导致的了,之前发布的文章也出现了 html 转义字符 0

The solution to the html escape character in SyntaxHighlighter 3.x of WordPress 4.9.8 is rooted in the Gutenberg editor

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...

Run the console command script based on Supervisor, after running 1 time, run the implementation of the console command script again after 60 seconds 0

Run the console command script based on Supervisor, after running 1 time, run the implementation of the console command script again after 60 seconds

Post Views: 12 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/...

0

In Yii2 advanced template, the task is implemented asynchronously based on the Yii2 queue extension, and the additional event handler is attached, after each successful execution of the job, when an exception occurs during the job execution.

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...

0

Implement asynchronous execution of tasks based on Yii2 queue extension in Yii2 advanced template

Post Views: 12 1. Install the Yii2 queue extension and execute the following commands 2. Check composer.json, the installation has been successful 3. Register multiple queue components to the console, edit \console\config\main.php 4. Configuration...

0

When executing .\nginx -s reload , it prompts: nginx:[emerg]Host not found in upstream “api.aims-api.localhost” in c:/nginx-1.10.1/conf/vhosts/aims.conf:14

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...

0

In the LNMP environment, the response no input file specified. But the file is the analysis and solution of the actual existence

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...

升级至开发环境(CentOS)后,复制文件成功 0

Implemented in Yii 2.0: Resource Services

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:...