Category: Web Application Development
-
Post Views: 14 1. In \QQ\RESTS\Article_Category\StandardIndexAction.php 2. The expected response results are as follows: 3. The actual response result is as follows: all field types are strings, as shown in Figure 1 4. Edit \qq\rests\article_category\serializer.php, print $models 5. The print result is as follows, all fields are strings 6. Edit \QQ\RESTS\Article_Category\StandardIndexAction.php, delete ->asArray(), because only the data of the current…
-
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 value is an empty string Body 3. The request response failed, 422, as shown in Figure 1 4. Now you need to realize that when the…
-
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: 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: 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: 13 1. Posthttp://api.channel-pub-api.localhost/qq/v1/articles?group_id=015ce30b116ce86058fa6ab4fea4ac63, as shown in Figure 1 Print request parameters: 2. Posthttp://api.channel-pub-api.localhost/qq/v1/articles?group_id=015ce30b116ce86058fa6ab4fea4ac63, the request parameter UUID is the array format, as shown in Figure 2 Print request parameters: 3. Check \QQ\RESTS\Article\CreateAction.php, when the value of UUID is a single string, it is filled with the verification code 4. Reference URL:https://www.yiiframework.com/doc/guide/2.0/zh-cn/input-tabular-input, edit \QQ\RESTS\Article\CreateAction.php, when the value of UUID…