Category: Web Application Development
-
Post Views: 14 1. In the previous release interface, only one channel is supported for a release. Therefore, the release of the three channels needs to call the interface (APP, Netease account, Weibo) 3 times respectively, as shown in Figure 1 2. On the current release interface, it is ready to publish at one time and can be published on…
-
Post Views: 17 1. Docker deployment, the implementation of Crontab (Bash Sleep) based on Supervisor, to reduce memory usage, refer to:https://www.shuijingwanwq.com/2019/10/12/3555/. /console/controllers/cmcConsoleUserController.php 2. Break ends the execution of the current Foreach structure, that is, each run of the command line, only the user list under the tenant is successfully synchronized. When there are too many tenants, suppose 100 tenants, the…
-
Post Views: 12 1. Among the products released by the channel, the Weibo channel, the type of article published: the article of the link (link), the response error of the Weibo platform: Status code: 400, error code: 20012, error message: text Too long, please input text less than 140 characters!, as shown in Figure 1 2. After many tests, we…
-
Post Views: 19 1. The article involving the 1st table, the Penguin number: cpa_qq_article, the field needs to be verified: the uniqueness of the title, the structure of the table is shown in Figure 1 2. The task of the application of the channel involved in the second table, the application task of the channel: CPA_CHANNEL_APP_TASK, field: task_id and the…
-
Post Views: 49 1. An error is reported in Yii 2.0: yii\base\ErrorException: undefined index: http_accept, as shown in Figure 1 2. Check the runtime log file: /api/runtime/logs/app.log 3. The log information of the two requests, found when $_SERVER[‘HTTP_USER_AGENT’]When the value is okhttp/3.12.0, $_server[‘HTTP_ACCEPT’]Does not exist 4. Ask the Android client to explicitly declare accept in headers when $_server[‘HTTP_USER_AGENT’]When the value…
-
Post Views: 17 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, QT, MKV, MK3D, MKA, MKS, WMV, FLV, DOC, docx, xls, xlsx, ppt, pptx 2. The upload extension is: .jpg, the upload failed, prompt: not allowed,…
-
Post Views: 18 1. Composer has been installed before, to ensure the latest version is used. You can update Composer to version 1.9.2 by running composer self-update, as shown in Figure 1 2. Updating Yii 2 to the latest version by running Composer Update, the Yii Framework has been upgraded from version 2.0.15.1 to 2.0.31, as shown in Figure 2…