Tag: response
-
Post Views: 18 1. Get the menu list, as shown in Figure 1 2. Check the available Debug data, its data comes from HTTP, as shown in Figure 2 3. Check the http model file: common/logics/http/cmc_console/menu.php, the code is as follows 4. CmcConsoleHttp is a component, configure the HTTP client through the application component, refer to the URL:https://www.yiiframework.com/extension/yiisoft/yii2-httpclient/doc/guide/2.0/zh-cn/usage-setup-client-instance, view the…
-
Post Views: 46 1. Open the URL in the browser: http://api.channel-pub-api.localhost/qq/v1/OA uth2/authorize?group_id=015ce30b116ce86058fa6ab4fea4ac63 , which responds to the XML format, because RESTful APIs support both JSON and XML formats. But HTML format is not supported. as shown in Figure 1 2. Open in postman, the value of accept is: application/json; version=0.0, respond to json format, as shown in Figure 2 3.…
-
Post Views: 40 1. Set the default collation of the database as: utf8mb4_unicode_ci, as shown in Figure 1 2. Modify the default character set for database connections: utf8mb4, edit the configuration file in the development environment, \environments\dev\common\config\m ain-local.php, edit the configuration file in the production environment, \environments\prod\common\config\main-local.php 3. Execute the initialization command, as shown in Figure 2 4. Edit the…