Category: PHP 7.1

如果已设置环境变量:PCS_API_CFG_MIGRATE,其值为:true,则依次执行命令:php /sobey/www/pcs-api/yii migrate --migrationPath=@yii/log/migrations/ --interactive=0、php /sobey/www/pcs-api/yii migrate --interactive=0 0

After the Rancher container is upgraded, the application initialization command and the database migration command are automatically run based on the configuration of the environment variables

Post Views: 13 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...

此时数据库中 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: 17 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:...

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

PUT http://api.channel-pub-api.localhost/qq/v1/qq-cw-apps/148d4df6eba311e899f654ee75d2ebc1?group_id=spider 时,贵响应成功 0

In Yii 2, when updating the model, when a field does not exist, the model is not updated (default implementation), when a field exists and its value is empty (assigned to the old value of the attribute), the implementation of the model is not updated

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

在企鹅号后台查看我的素材,视频文件已经分片上传成功 0

The implementation process of video file sharding upload based on Penguin, including queue, file slice, while loop, etc.

Post Views: 16 1. The design of the database structure, a resource table, a video file upload table of a Penguin number, and a transaction table of a penguin. The structure is as follows:...