Monthly Archive: December 2018

此时数据库中 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: 15 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: 91 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: 11 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: 49 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...