Monthly Archive: December 2019

运行文件,Go 报错:exercise-maps.go:4:2: cannot find package "code.google.com/p/go-tour/wc" in any of: c:\go\src\code.google.com\p\go-tour\wc (from $GOROOT) C:\Users\Administrator\go\src\code.google.com\p\go-tour\wc (from $GOPATH) 0

Error when running Go: exercise-maps.go:4:2: cannot find package “code.google.com/p/go-tour/wc” in any of: C:\Go\src\code.google.com\p\go-tour\wc (from $goroot)

浏览量: 12 1. Check the Go file: exercise-maps.go, the code is as follows 2. Run the file, Go reports an error: exercise-maps.go:4:2: Cannot find package “code.google.com/p/go-tour/wc” in any of: C:\Go\src\code.google.com\p\go-tour\wc (from $goroot) C:\Users\Administrator\Go\src\code.google.com\p\go-tour\wc (from...

上传扩展名为:.docx 的文件,上传失败,提示:不允许 0

When uploading a file based on Yii 2.0, the list of file extensions that can be uploaded has been added: .docx, and the solution is still not allowed to upload

浏览量: 11 1. List of file extensions that can be uploaded: ogg, pdf, xml, zip, gz, mp4, mp3, wav, webm, gif, jpeg, jpg, png, webp, SVG, SVGZ, TIFF, CSS, CSV, TXT, VCF, VCARD, MOV,...

在 Postman 中 GET:http://api.pcs-api.localhost/v1/plans/new ,响应参数 0

In Yii 2.0, add a new RESTful API for the implementation of new resources (rendering form data)

浏览量: 13 1. Check REST/ActiveController.php to find the default action method list 2. Yii\rest\ActiveController provides the following actions by default: 3. There is a new requirement, which has been reflected in the prototype. When...

当响应状态码等于20x,但返回码不等于约定的成功返回码时,即业务逻辑失败,获取菜单列表,符合预期,最后一个问题得到解决 0

Best practices in the current period of response processing based on Yii 2 based on HTTP client extensions (optimized in the previous implementation, this is practiced for the next period of time, http Localization of client components, simplification of returned processing logic, etc.)

浏览量: 16 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:...

决定调整为开发模式 (dev),再次上传选题素材,以查看更为详细的错误信息,报错:chmod(): Operation not permitted 0

In Yii 2.0, when creating a multi-level directory based on FileHelper, an error is reported: chmod(): operation not permitted, which in turn can only successfully create one level analysis and solution at a time.

浏览量: 14 1. When uploading the topic selection material, the server is internally wrong. as shown in Figure 1 2. Decided to adjust to the development mode (dev), upload the topic selection material again...

由于 Supervisor 仅启动 1 个 queue/listen,因此,一旦某一队列处于 reserved,则其他队列只好一直处于 waiting 状态,所以,临时决定 remove 命令删除作业,以启动程序的继续正常运转,查看 log 表,其 message 字段内容,可以确定队列 ID 值为:159,info 命令打印关于队列状态的信息时,reserved 状态的队列数量减少 1,done 状态的队列数量增加 1,符合预期 0

Yii2 queue extension, in the Redis driver, when the info command prints information about the queue status, the deletion of the queue in the reserved state

浏览量: 12 1. Check the log table, the content of the message field is as follows: 2. The analysis found that after publishing the article queue event handler, and after the job execution of...

Yii2 高级模板初始化时,报错:Error. Directory frontend/web/assets does not exist 0

When the container is upgraded based on Rancher, when the Yii2 advanced template is initialized, an error is reported: Error. Directory Frontend/Web/Assets does not exist analysis and solution

浏览量: 15 1. When the advanced template is initialized, an error is reported: Error. Directory Frontend/Web/Assets does not exist, as shown in Figure 1 2. Enter the directory in the container: /mcloud/www/channel-pub-api/frontend/web, and determine...

在网页框架中点击链接,报错:Uncaught DOMException: Blocked a frame with origin "https://cmcp.cmc.tianyirm.cn" from accessing a cross-origin frame. at toDetail (https://cmcp.cmc.tianyirm.cn/sub-sites:253:19) 0

Click the link in the web page framework and report an error: Uncaught DomException Blocked a frame with origin from accessing a cross-origin frame

浏览量: 8 1. Click the link in the web page frame and report an error: Uncaught DomException: blocked a frame with origin “https://cmcp.cmc.tianyirm.cn” from accessing a cross-origin frame. at todetail (https://cmcp.cmc.tianyirm.cn/sub-sites:253:19),如图1 2. Click at...