Tag: null
-
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. In the MySQL table, the field type is JSON, and it is allowed to be null. as shown in Figure 1 2. Since only is_null() is judged in the program, if it is not null, the default is json format. When its value is String(4) “NULL”, the program throws a 500 exception. Displayed as null, indicating…
-
Post Views: 16 1. In Laravel 6, execute the UpdateOrCreate method to update the existing model or create a new model if it does not exist. The last generated sql is as follows, the field checksum is missing. as shown in Figure 1 2. The code is implemented as follows: 3. Print the variable $extra, and determine that the field…
-
Post Views: 19 1. Adding fields to a table takes 180 seconds. as shown in Figure 1 2. The total number of records in the query table is: 173816. as shown in Figure 2 3. Decide to allow the newly added field to be null, and add the field again, which takes 104 seconds. as shown in Figure 3 4.…
-
Post Views: 66 1. When executing: npm install, it has been executed for about half an hour, and an error is reported: if you are behind a proxy, please make sure that theProxyconfig is set properly. . as shown in Figure 1 2. Check the npm proxy settings, the value is: https://127.0.0.1:8888/ 3. Decide to delete the npm proxy settings.…
-
Post Views: 20 1. Error: count(): parameter must be an array or an object that implements countable (view: ). as shown in Figure 1 2. Check the code implementation 3. Print $user->address_book, its value is null 4. Adjust the code implementation, when $user->address_book is null, the expression $user->address_book ??[]equivalent to[], otherwise it is $user->address_book. 5. In PHP 7.2.0, when the…
-
Post Views: 18 1. The parameters requested by the front-end are empty strings. as shown in Figure 1 2. After the backend is saved, the value of the title is null . 3. Print all request parameters in the backend, var_dump($request->all()); Confirm that the value of the title has been converted to null. as shown in Figure 2 4. Reference:https://learnku.com/docs/laravel/6.x/validation/5144#6633ca.…
-
Post Views: 16 1. In response to the error in the GraphQL API: Expected a value of type \”URL\” but received: (Empty String). as shown in Figure 1 2. Print the object of the response, its value is String(0) “”. 3. Set in GraphQL, value: url . is allowed for null. But when it is String(0) “” , it is…
-
Post Views: 14 1, CMCConsoleUser/ActionSync, existing implementation, reference:https://www.shuijingwanwq.com/2020/03/02/3964/, now need to add parameters: tenant ID 2. The parameter will be passed to the action method corresponding to the requested subcommand. Set the default value of the parameter $groupid to null 3. Determine whether the $groupId is empty, if it is not empty, and it does not exist in $HttpCMCAPiGroupIds, it…