Category: Programming Language
-
Post Views: 13 1. In Yii 2.0, the realization of health check, a colleague implemented a version before, I feel that it is necessary to adjust it again 2. The analysis code found that yii::$app->db->getisActive() is unnecessary. View the source code of the corresponding method separately. The related implementation of $this->pdo in getIsActive() already exists in open() . 3. Analyze…
-
Post Views: 17 1. In phpstorm prompt: Invalid vcs root mapping. The directory <project>\vendor\wartron\yii2-uuid is registered as a git root, but no git repositories were found there. as shown in Figure 1 2. Click Configure to enter the configuration interface. Discover: Vendor\Wartron\Yii2-UUID is marked red. as shown in Figure 2 3. Reference URL:https://www.shuijingwanwq.com/2020/05/11/4130/. The reason is that the directory is…
-
Post Views: 14 1. Reference URL:https://www.shuijingwanwq.com/2020/07/02/4288/. Previously, the code file could only be placed below: C:\Users\Administrator\Go\Src. Put it in: E:\wwwroot\go\src will report an error. 2. Edit the environment variable – the user variable of Administrator – GOPATH, its original value is: C:\Users\Administrator\Go, create a new: E:\wwwroot\go. Its new value is: C:\Users\Administrator\Go;E:\wwwroot\go. as shown in Figure 1 3. Reference URL:https://github.com/unknwon/the-way-to-go_ZH_CN/blob/master/eBook/09.8.md. Compile…
-
Post Views: 15 1. Based on the function: file_put_contents, when a string is written to the file, there are various forms in the group when defining the file name to be written to 2. Under different forms, the problem is that with the change of the running environment of the program, the file name of the written data is also…
-
Post Views: 15 1. Error in Go: package_mytest.go:5:2: cannot find package “.” in: E:\WWWRoot\Go\The-way-to-go\package\pack1. as shown in Figure 1 2. Check the code of pack1.go 3. Check the code of package_mytest.go 4. Check the environment variables – the user variables of the administrator – GOPATH, whose values are: C:\Users\Administrator\Go, as shown in Figure 2 5. Compile and install a package.…
-
Post Views: 15 1. Error in Go: package_mytest.go:5:2: cannot find package “.” in: E:\WWWRoot\Go\The-way-to-go\package\pack1. as shown in Figure 1 2. Check the code of pack1.go 3. Check the code of package_mytest.go 4. Check the environment variables – the user variables of the administrator – GOPATH, whose values are: C:\Users\Administrator\Go, as shown in Figure 2 5. Compile and install a package.…
-
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: 15 1. In postman postman :http://api.pcs-api.localhost/v1/mobile/rtcs/invite-accept, the data in the body is written in the redis cache in the format of an array, as shown in Figure 1 The data in the body will change every time the request is requested, and the implementation logic in the program is as follows: 3. Check the difference set of the…
-
Post Views: 15 1. Error in CentOS 7.5 64-bit, PHP 7.4: PHP core warningYii\Base\ErrorExceptionwith messagemodulezipalready loaded, as shown in Figure 1 2. Check the information of phpinfo() and confirm that the zip extension is installed. as shown in Figure 2 3. Check whether zip exists in /usr/local/php/etc/php.ini. exists. 4. Check the extension_dir of phpinfo(), its value: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/ , as shown…