永夜 Blog

基地设置的图标 的场景,文件扩展名为 zip 的文件,上传失败,符合预期 0

The interface for uploading files in Yii 2.0, the realization of multiplexing in multi-scenario (the validation rules for each scenario)

浏览量: 1 1. The interface for uploading the file, which only realizes the scenario of uploading the topic selection material, now needs to add the scene of the upload base icon, and decide to...

容器升级后,设置环境变量 PCS_API_CFG_CONSOLE=true,查看 supervisord 运行状态,PHP 命令行脚本 cmc-console-user/sync、config-column-user/sync 皆已运行,符合预期 0

Run the PHP command-line script based on Supervisord, which can be controlled based on the Rancher environment variable to support the implementation of the PHP command-line script only runs in the stand-alone when deploying a cluster

浏览量: 1 1. will /build/c_files/etc/supervisord.d/yii-cmc-console-user-sync.ini, /build/c_files/etc/supervisord.d/yii-config-column-user-sync.ini Shear to /build/c_files/tmp/yii-cmc-console-user-sync.ini, /b uild/c_files/tmp/yii-config-column-user-sync.ini, as shown in Figure 1 2. Edit \build\c_files\config\init\console_init.sh, the code is as follows, as shown in Figure 2 3. Edit \build\readme.md, whether the...

在 Postman 中打开网址:http://api.pcs.wjdev.chinamcloud.cn/v1/assets/upload, 上传文件,响应失败 0

Missing the temporary folder to store the uploaded file

浏览量: 1 1. Open the URL in Postman:http://api.pcs.wjdev.chinamcloud.cn/v1/assets/upload,Upload the file, the response failed, as shown in Figure 1 2. Check /runtime/logs/app.log, and report an error:[warning][yii\validators\FileValidator::validateValue]Missing the temperature folder to store the uploaded file: 360wallpaper(0).jpg...

打开文件:我的任务-2019-09-20-19-39-11.xlsx,符合预期 0

Implementation flow of exporting resource list to Excel file in Yii 2.0

浏览量: 54 1. The resource list of my task, plan to add an export button at the head of the resource list, as shown in Figure 1 2. Search in github: yii2 export excel,...

filter[and][0][or][1][keyword][fis]=关键字3 0

In Yii 2.0, the method is constructed based on the mapping filter condition keyword. Added implementation of specific condition builder (FIS) to support the mysql find_in_set() function

浏览量: 1 1. Open the URL in Postman:http://api.pcs-api.localhost/v1/plans/have?login_id=2e368664c41b8bf511bcc9c65d86dbc3&login_tid=f347ba5bb18cb3fbef94c0b37c796bf5&filter[and][0][or][0][title][like]=Shenzhen &Filter[status][neq]=0&filter[and][0][or][1][keyword]= keyword, as shown in Figure 1 2. Print request parameter: $requestParams 3. Print the filter: $filter 4. The final generated SQL is as follows, as...

打开 RedisDesktopManager,数量变化为 32,符合预期 0

In the console command of Yii 2.0, when connecting to Redis, an error is reported: yii\db\exception: redis error: err invalid db index redis command was: select Analysis of 29 in /vendor/yiisoft/yii2-redis/src/connection.php:736

浏览量: 2 1. In the console command of Yii 2.0, an error is reported: yii\db\exception: redis error: err Invalid DB index Redis command was: Select 29 in /vendor/yiisoft/yii2-redis/src/connection.php:736, view /console/runtime/logs/app.log 2. The analysis found...

在 Yii 2.0 中数据验证失败:来源发布用户ID必须是一条字符串。 0

Data validation fails in Yii 2.0: the source publishing user ID must be an analysis of a string (to ensure the compatibility of the version, both numeric type and string type must be supported)

浏览量: 46 1. Data validation failed in Yii 2.0: the source publishing user ID must be a string. as shown in Figure 1 2. The reason is the field: source_pub_user_id was int(11) in the...