Category: Web Application Development
-
Post Views: 49 1. When publishing a video manuscript to Bilibili, it prompts: The manuscript partition is wrong. as shown in Figure 1 2. Analyze the articles that failed to publish this article. The selected categories are: Information – Comprehensive. as shown in Figure 2 3. Publish successful manuscripts, the selected classification is: Life – Others. as shown in Figure…
-
Post Views: 37 1. Implement the corresponding RPC service of the page in the RPC directory, create a remote procedure call HTTP server, and create a new \RPC\Controllers\ServerController.php 2. Create a new page model \rpc\models\page.php 3. Create a new page controller, \rpc\controllers\pagecontroller.php 4. Then open the URL on the browser side:http://rpc.github-shuijingwan-yii2-app-advanced.localhost/page/create, see the following output: Fa2{u#s11″page_create”}z, as expected 5. Create…
-
Post Views: 14 1. In the domain name:http://editorweb.wjdev.chinamcloud.cnInterface in request:http://api.pcs.wjdev.chinamcloud.cn/v1/plan-tasks/274?login_id=2e368664c41b8bf511bcc9c65d86dbc3&login_tid=b26398238620e8cd15b0155cd7aee9b2, in response to 404 , the “Access-Control-Allow-Origin” header does not exist on the requested resource. as shown in Figure 1 Decide to implement a front-end AJAX request example in the local environment by yourself 3, POST request, response 200, but no response data. as shown in Figure 2 4. Refer…
-
Post Views: 19 1. In Postman, the details of the specified resource of the GET request, the response is 200, as shown in Figure 1 2. Check the routing configuration, the code is as follows 3. Check the controller, the code is as follows 4. Details of the specified resource for the POST request in Postman, the response is 404,…
-
Post Views: 13 1. When executing the Composer Update, the prompt: Package Codeception/Base is abandoned, you should avoid using it. No Replacement was Suggested., as shown in Figure 1 2. Since I am using the Yii 2 advanced project template, look at composer.json on github, and find that there are no dependencies: codeception/base, refer to:https://github.com/yiisoft/yii2-app-advanced/blob/2.0.35/composer.json, as shown in Figure 2…
-
Post Views: 14 1, CMCConsoleUser/ActionSync, existing implementation, reference:https://www.shuijingwanwq.com/2020/03/02/3964/, now need to add parameters: tenant ID 2. The parameter will be passed to the action method corresponding to the requested subcommand. Set the default value of the parameter $groupid to null 3. Determine whether the $groupId is empty, if it is not empty, and it does not exist in $HttpCMCAPiGroupIds, it…
-
Post Views: 13 1. The request interface, the total number of resources in the response parameters is 30. Resources containing ids equal to 37918 are duplicates. A total of 2. as shown in Figure 1 2. Check the model class, /common/models/redis/cmc_console/user.php 3. Check /common/components/redis/activerecord.php , which defines the prefix and applies to all AR keys. 4. Open RedisDesktopManager, check the…
-
Post Views: 11 1. When multiple database connection components have been added in Yii 2.0 2. The strategy to migrate multiple databases is to store the migration to different directories. A connection component corresponds to a directory. DB directory: /console/migrations/. Directory of statdb: /console/migrations/stat_db/. as shown in Figure 1 3. When generating the migration file under statdb, you need to…
-
Post Views: 17 1. When multiple database connection components have been added in Yii 2.0 2. When statdb is selected for the database connection ID, only the data table under statdb will appear in the drop-down list of the table name, as shown in Figure 1 3. When the model file under statdb is generated, getdb() is additionally generated, as…
-
Post Views: 15 1. Edit .gitignore and add /vendor to the git warehouse, as shown in Figure 1 2. Failed to build in Jenkins, check Console output. as shown in Figure 2 3. Docker deployment, delete the composer install. Edit Dockerfile. as shown in Figure 3 4. Build successfully in Jenkins. as shown in Figure 4 5. Failed to start…