Year: 2020
-
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: 18 1. When using the Windows Photo Viewer, it prompts: Windows Photo Viewer cannot display this picture because the available memory on the computer may be insufficient. Please close some programs that are not currently in use or release some hard disk space (if the hard disk is full), and try again. as shown in Figure 1 2.…
-
Post Views: 61 1. Failed to use the ICBC credit card to pay online: the card has set the maximum monthly consumption amount in the bank, and this transaction has exceeded the amount. If you need to increase the limit, please contact the bank customer service. as shown in Figure 1 2. Log in to the ICBC APP to view…
-
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…
-
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: 14 1. Optimize the composer to automatically load, execute the command: composer dumputoload -o, prompt: deprecation notice: does not comply with PSR-0 autoloading stan Ard. It will not autoload anymore in composer v2.0. As shown in Figure 1 2. After translation, the notification of deprecation: the class does not meet the automatic loading standard of PSR-0. It will…
-
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…