Year: 2019
-
Post Views: 14 1. Docker deployment, when building an image on Jenkins, an error is reported: composer install returned a non-zero code: 255, as shown in Figure 1 2. The code for the failure of the dockerfile to execute the command is as follows 3. Edit Dockerfile, the build is successful, the reason for the visible failure is: composer install…
-
Post Views: 14 1. The number of request parameters is 1136, as shown in Figure 1 2. Error in PHP 7.2: MB_parse_str(): Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. as shown in Figure 2 3. MAX_INPUT_VARS Indicates how many input variables are accepted (limits apply to the $_GET, $_POST and $_COOKIE hyperglobal variables, respectively) The…
-
Post Views: 12 1. Reference URL:https://www.php.net/manual/zh/function.memory-get-usage.php 2. Based on an example of memory_get_usage(), after adjustment, as shown in Figure 1, the code is as follows: 3. The execution result, unset() is effective for reducing the amount of memory actually used by the php script. 4. In Yii 2.0, run the same code, check the memory usage of the debug data,…
-
Post Views: 16 1. In nginx 1.10 version, an error is reported when reloading: nginx:[warn]Could not build optimal server_names_hash, as shown in Figure 1 2. Check the nginx configuration file, C:\nginx-1.10.1\conf\nginx.conf 3. Check the virtual host configuration file, C:\nginx-1.10.1\conf\vhosts\channel-pub-api-wx-auth.conf 4. Reference URL:https://nginx.org/en/docs/http/server_names.html, according to the error message, it should be caused by the definition of a large number of server…
-
Post Views: 15 1. In Yii 2.0, an error is reported: “Calling unknown method: API\modules\v1\models\plantask::claimProcess()”, as shown in Figure 1 2. View the \API\modules\v1\models\plantask.php file, the code is as follows 3. To view the \common\logics\plantask.php file, the method ClaimProcess is defined as private (private), and it can only be accessed by the class where it is defined. The code is…
-
Post Views: 17 1. Obtain the topic details interface, the operation permission of the topic includes all the permission buttons of the current user, which can be customized for the mobile terminal 2. Edit method file: \api\rests\plan\viewaction.php, get the controller ID (yii::$app->controller->id), when its route is: /v1/plans/2, its value is: plan, as shown in Figure 1 3. Edit the method…
-
Post Views: 14 1. The requirements put forward by the new colleagues are required to realize the following requirements: (1) Logged in, desktop \api\rests\resource Modified to: \API\RESTS\PLAN_TASK_RESOURCE (2) Tourists, do not make changes \API\RESTS\CLIENT_RESOURCE (3) Logged in, mobile terminal Task Management – Delete Task Materials Task Management – Manage background material list \API\RESTS\MOBILE\PLAN_TASK_RESOURCE (4) Logged in, mobile terminal /v1/mobile/resources/resource material…