Category: PHP
-
Post Views: 11 1. URL:https://windows.php.net/download#php-7.2, download vc15 x64 thread safe, as shown in Figure 1 2. VC15 version needs to install Visual Studio 2017 x64 or x86 Visual C++ Redistributable, download and install Microsoft Visual C++ Redistributable for Visual Studio 2017, as shown in Figure 2 3. Copy php-7.2.14-win32-vc15-x64 to C:\php-7.2.14 4. Edit environment variables: C:\php-7.1.12, modified to C:\php-7.2.14 5.…
-
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: 55 1. In Yii 2, the error is reported: “classweibo\\rests\\oauth2\datetimenot found” 2. Since the namespace is used, in order to solve the problem of finding a class definition in the namespace, you need to add a preamble \ before the class name
-
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…
-
Post Views: 39 1. The copy API application is QQ and WX. After adjusting the corresponding configuration, the final application directory structure is as follows 2. Nginx-based single domain name configuration on Yii 2 advanced project template, refer to the website:https://www.shuijingwanwq.com/2018/08/16/2836/, the API application is cross-channel, the QQ application is Penguin, and the WX application is the WeChat public account,…
-
Post Views: 15 1. Execute the initialization command in Windows 10, set the directory permissions of all applications, normal (14 lines in total), as shown in Figure 1 2. Execute the initialization command in CentOS 7.2, the directory permissions under some applications are not set, abnormal (8 lines in total), as shown in Figure 2 3. Enter the /api directory…
-
Post Views: 14 1. In \QQ\RESTS\Article_Category\StandardIndexAction.php 2. The expected response results are as follows: 3. The actual response result is as follows: all field types are strings, as shown in Figure 1 4. Edit \qq\rests\article_category\serializer.php, print $models 5. The print result is as follows, all fields are strings 6. Edit \QQ\RESTS\Article_Category\StandardIndexAction.php, delete ->asArray(), because only the data of the current…
-
Post Views: 17 1. Gethttp://api.channel-pub-api.localhost/qq/v1/qq-cw-apps/edit/148d4df6eba311e899f654ee75d2ebc1?group_id=spider, the response is as follows, based on security reasons, reset the client secret to an empty string 2, therefore, PUThttp://api.channel-pub-api.localhost/qq/v1/qq-cw-apps/148d4df6eba311e899f654ee75d2ebc1?group_id=spider, if the value of client_secret is not updated, its value is an empty string Body 3. The request response failed, 422, as shown in Figure 1 4. Now you need to realize that when the…