Tag: data
-
Post Views: 33 1. — `Official-Website-Management-System`.recommendation_slots definition There are two tables for the existing recommendation bits and recommendation bit data. There is also an initialization script of the recommended bit, the code is implemented as follows: Implemented logic to add or update based on Alias, and Alias has a fixed correspondence with the ID. In the code, when hardcoded to…
-
Post Views: 15 1. The initial response structure is as follows: as shown in Figure 1 2. Since paging is not required, the front end wants to remove the package data key of the outermost resources, and set the “data” wrapper to null. Modify the resource collection class as follows 3. The result is as expected, and the interface…
-
Post Views: 56 1. In the table, there is a large amount of duplicate data in the column store_name, such as: chill26, ftolrxs34. as shown in Figure 1 2. Now I want to count how many non-repeatable store_name are in total. Then you need to remove the duplicate data first to ensure the uniqueness of each row. Reference:Use duplicates quickly…
-
Post Views: 14 1. Under api.pcs-stat.localhost, a standard RESTful API. The code in the method file is as follows (written by a colleague). as shown in Figure 1 2. Now plan to migrate this interface to api.pcs-api.localhost, at this time, api.pcs-api.localhost is an RPC client, api.pcs-stat.localhost is RPC server. Reference:https://www.shuijingwanwq.com/en/2020/06/23/11545/. 3. Create a new RPC server file, RPC/Controllers/DataPlanControlTaskController.php 4. Create…
-
Post Views: 23 1. At this stage, there is a new requirement, and it is necessary to do some initial data work for the product when deploying the product. Prepare the corresponding SQL file, but for the file path in the MySQL table: /upload/20200817/20203555555373.png. It is stored in NAS storage. rather than the program directory. as shown in Figure 1…
-
Post Views: 95 1. In the Google Chrome browser, after today’s Toutiao is opened, it is blank, as shown in Figure 1 2. Check the console, report an error: access to xmlHttpRequest athttps://verify.snssdk.com/reportErrorfrom originhttps://www.toutiao.comHas been blocked by cors policy: request header field ra-ver is not allowed by access-control-allow-headers in preflight Response. As shown in Figure 2 3. Clear browsing data,…