Category: Web Application Development
-
Post Views: 13 1. Back up the entire site file, use the FTP client, and copy the file from the server to the local machine, as shown in Figure 1 2. Log in to phpmyadmin and back up the database, as shown in Figure 2 3. Search in the background: Backup, and then select BackupwordPress to install, as shown in…
-
Post Views: 15 1. Define: Data Layer: Models are used to define data-related automatic verification and auto-completion and data access interfaces. Logic Layer: Logics is used to define data-related business logic. 2. Create a new logics directory in the common directory, which is used for the logical layer of the mysql model, as shown in Figure 1 3. Create a…
-
Post Views: 15 1. At 2017-06-18 19:36:00, that is, when the game starts, the response time of the application is 51.8ms, and the response time is normal, as shown in Figure 1 2. During the entire football game, the response time is increasing linearly, at 2017-06-18 20:30:00 to 2017-06-18 At 20:40:00, the response time decreased because the game was in…
-
Post Views: 12 1. Compatibility goal: adjust the response of the flying flow to the response specification of the body (convert the field type of the non-array to a string), and be backwards compatible Note: If the version of the requested headers does not exist or the version exists and the version is greater than or equal to 2.1, the…
-
Post Views: 50 1. In the production environment, the data in the skill data table is repeatedly written, as shown in Figure 1 2. However, before writing, it is judged whether the record exists. The combination of GAME_CODE and TEAM_CODE should be the only one, as shown in Figure 2 3. It is recommended to check the website first: https://www.shuijingwanwq.com/2017/04/18/1568/…
-
Post Views: 14 1. Copy\vendor\yiisoft\yii2\console\controllers\cacheController .php to \console\controllers\luagameteamskillController.php, as shown in Figure 1 2. Rename \console\controllers\luagameteamskillcontroller.php to \console\controllers\luagameteamskillcontroller.php, as shown in Figure 2 3. Modify the namespace to namespace console\controllers;, and the class name is modified to luagameteamskillController, as shown in Figure 3 4. Only keep ActionIndex(), other methods are deleted, as shown in Figure 4 5. In Windows PowerShell,…
-
Post Views: 18 1. Set the lockout time: the current UNIX timestamp + Redis lock timeout time, in seconds (3), edit the file: \common\config\params.php, as shown in Figure 1 2. Get the relevant setting parameters and edit the file: \api\models\redis\gamecategory.php, as shown in Figure 2 3. Get the Redis connection to execute the relevant commands, edit the file: \API\Models\Redis\GameCategory.php, as…
-
Post Views: 15 1. Please refer to the previous blog:https://www.shuijingwanwq.com/en/2016/11/26/10288/ 2. Prepare to implement RESTful web services based on shujujixi 3. Based on the GII generation model on the Frontend application, edit \environments\dev\frontend\config\main-local.php, as shown in Figure 1 4. Execute .\init in Windows PowerShell to overwrite \frontend\config\main-local.php, and set the IP allowed by GII, as shown in Figure 2 5.…
-
Post Views: 52 1. In Windows Powershll, enter the wwwroot directory, as shown in Figure 1 2. Through the Composer installation, run the following commands and install it in the kaiqiu_shujujixi_api directory, as shown in Figure 2 and 3 composer create-project yiisoft/yii2-app-advanced kaiqiu_shujujixi_api 2.0.10 3. Enter kaiqiu_shujujixi_api directory, right-click, select git bash here, as shown in Figure 4 4. Execute…
-
Post Views: 11 1. Open the backend – content – text component – create text block, error: classtrntv\Aceeditor\Aceeditornot found, as shown in Figure 1 2. Edit yii2-starter-kit\vendor\trntv\yii2-file-kit\composer.json, as shown in Figure 2 “autoload”: { “psr-4”: { “trntv\\filekit\”: “” } }, Modified to: “autoload”: { “psr-4”: { “trntv\\filekit\”: “src/” } }, Note: Redefine the mapping from namespace to directory, the directory…