Category: Yii 2
-
Post Views: 14 1. Open the desktop application terminal, the interface, as shown in Figure 1 2. Interface: my topic selection (get a list of topics), the response structure in postman, as shown in Figure 2 3. Prototype design on the mobile application side, as shown in Figure 3 4. At this stage: the subsequent iterative development stage, the desktop…
-
Post Views: 15 1. The data structure of the A table, as shown in Figure 1 2. The data structure of the B table, as shown in Figure 2 3. The current requirement is that 8 fields in the A table need to be queried, inserted into the B table, and the following commands are used to create a new…
-
Post Views: 46 1. Execute the command and report an error: php warning: strpos(): empty needle in E:\WWWRoot\PCS-API\Vendor\yiisoft\yii2\log\target.php on line 243, as shown in Figure 1 2. View \console\runtime\logs\app.log 3. Edit on the command line 4. Edit on the command line. Once an exception is thrown in the console command line, when writing to the log, an error will be…
-
Post Views: 11 1. Column configuration: pa_config_column, as shown in Figure 1 2. Column staff configuration: PA_CONFIG_COLUMN_USER, as shown in Figure 2 3. Topic: PA_plan, as shown in Figure 3 4. Topic selection task: PA_PLAN_TASK, as shown in Figure 4 5. Task management – my task, query rules (1) The tenant ID of the task is the tenant ID of…
-
Post Views: 40 1. In Postman, posthttp://api.github-shuijingwan-yii2-app-advanced.localhost/v1/users201 response, the status value is 1 by default 2. In Postman, deletehttp://api.github-shuijingwan-yii2-app-advanced.localhost/v1/users/1, 200 responses 3. In Postman, posthttp://api.github-shuijingwan-yii2-app-advanced.localhost/v1/users,422 response, not as expected, expected to be 201 response, because “username”: “111111” has been deleted 4. Create a new \console\migrations\m180925_054952_add_is_deleted_and_deleted_at_to_user.php. Update field, status, status, 0: disabled; 1: enabled, default: 1. Added field, is_deleted, whether it…
-
Post Views: 49 1. When using Composer to upgrade from Yii 2.0.x, an error is reported:[ErrorException]undefined variable: nameMatchesRequiredPackage, as shown in Figure 1 2. Update 3 packages, first update the first 2, no errors are reported, and then update the third one, the error is reported, the search dependency package in the current project Bower-asset/jQuery.inputMask, does not exist, as shown…
-
Post Views: 14 1. The current upgrade plan, after the Rancher container is upgraded, enter the Docker container and run it in sequence on the command line: 2. The problem with the current upgrade plan is that sometimes after the Rancher container is upgraded, the operation and maintenance personnel need to paste and run at least 2 commands in each…
-
Post Views: 14 1. The web application authorization of the micro-connection of Weibo (the user who guides the user to enter the authorization page to log in to the authorization page to agree to the web application of the micro-connection of Weibo), the rap document, as shown in Figure 1 2. Since the channel publishing interface is the underlying service,…
-
Post Views: 20 1. Open the URL in the browser:http://www.channel-pub-api-localhost.chinamcloud.com/weibo-oauth2/authorize-update?group_id=spider&channel_app_source_uuid=269f68bc098011e9b1c354ee75d2ebc1&user_name=华栖云1658397962&permission=4&status=1&redirect_uri=aHR0cDovL3d3dy56bXQuY29tLw%3D%3D, at this time the verification rule takes effect, as shown in Figure 1 2. The verification rules are: Permission: optional, permission, 1: synchronization; 2: release; 3: synchronization and release 3. At this time, the value of Permission in the database is 2, and the value of updated_at is 1545961613, as…