永夜 Blog

此时数据库中 permission 的值为 2,updated_at 的值为 1545961613 0

In Yii 2, when the input data is through the URL, in order to avoid redundant update SQL, apply a filter (Intval) to the input value, which in turn leads to the analysis of the invalidation of the derived verification rule.

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:...

在 Windows PowerShell 中执行命令:curl -X POST --data,报错:Invoke-WebRequest : 找不到接受实际参数“POST”的位置形式参数。 0

Execute the command in Windows PowerShell: curl -x POST –data, and report an error: invoke-webrequest : The location formal parameter that accepts the actual parameter “post” cannot be found. analysis solution

Post Views: 93 1. Execute the command in Windows PowerShell: curl -x POST –data, report an error: invoke-webrequest : The location formal parameter that accepts the actual parameter “post” cannot be found. as shown...

Rancher 中端口映射,公开主机端口:8661 映射至私有容器端口:80,新增 公开主机端口:8662 映射至私有容器端口:81 0

Implementation of 2 domain names deployed in 1 Git repository and 1 container based on Rancher

Post Views: 12 1. Now the channel publishing interface includes the following applications: Penguin account, WeChat public account, Weibo, console command, cross-channel, authorization, among which Penguin account, WeChat public account, Weibo, and cross-channel need...

HttpException 表示由最终用户的不正确请求导致的异常 0

Chinese translation and annotation of predefined HTTP exception classes for Yii 2.0 (reference: MDN, Wikipedia)

Post Views: 52 1. Yii\Web\BadRequestHttpException: status code 400. BadRequestHttpExceptions a “bad request” Http exception with status code 400. Use this exception to represent a generic client error. Describes the error. In that case, consider...

在 CentOS 7.2 中执行初始化命令,一些应用下的目录权限未设置,不正常(总计 8 行) 0

In the Yii 2 advanced template, execute the initialization command in CentOS 7.2, the analysis solution for some directory permissions under some applications is not set to 777 (the root is the Docker deployment configuration problem)

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...

实际的响应结果如下:所有字段类型皆为字符串 0

In Yii 2, the query data is declared based on yii\db\ActiveQuery::joinWith() , and the analysis solution of the response field type is a string

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...