Category: Web Application Development
-
Post Views: 53 1. When requesting the WeChat Mini Program interface: obtaining unrestricted applet code, an error is reported: errcode: 47001, errmsg: data format error Rid. as shown in Figure 1 2. Adjust the content-type of the request parameter and solve it. Then another error is reported: errcode: 41030, errmsg: invalid page Rid. as shown in Figure 2 3. Adjust…
-
Post Views: 17 1. The code is implemented as follows 2. But the verification failed, as shown in Figure 1 3. Since the format of H:I is the format in PHP. Set the string starting with php: to represent the date-time format that PHP can recognize. Verification passed. as shown in Figure 2
-
Post Views: 16 1. Confirm the Web server user with the following command: , confirm as the WWW user. There are root users and WWW users in the system (web server users) 2. Set the owner of the project directory to root user: 3. Set directory permissions: 755: 4. Set the owner of the runtime directory to the WWW user:…
-
Post Views: 19 1. View the response data in the interface, and the reasoning is that the checkin_location_coordinates in the response field is the point type of mysql. as shown in Figure 1 2. Decide to adjust the query sql, use mysql spatial functions (such as st_x and st_y) to extract the latitude and longitude, and avoid direct manipulation of…
-
Post Views: 21 1. In Yii2, the SQL generated after the validation rule of the existentiality is written is not as expected. as shown in Figure 1 2. Give up the use of TargetRelation, and use TargetClass and TargetAttribute instead. Generating SQL is as expected.
-
Post Views: 22 1. npm : The file cannot be loaded c:\program files\nodejs\npm.ps1 because the script is prohibited from running on this system. For more information, see about_execution_policies in https:/go.microsoft.com/fwlink/?LinkId=135170. 2. Confirm that the file C:\Program Files\NodeJS\npm.ps1 exists. as shown in Figure 1 3. Enter one of the following commands to change the execution policy, which is permanently changed (valid…
-
Post Views: 18 1. Report an error in Laravel 9: Indirect modification of overloaded property returnRorder::$order has no effect. as shown in Figure 1 2. The code is implemented as follows 2. The adjusted code is implemented as follows, no more errors are reported
-
Post Views: 16 1. The current scenario is as follows. In one table, there is a field of payment method. Now if it is necessary, the payment method will be summarized into another table regularly. In order to prevent the records before the query is repeated every time the timing is executed, it is necessary to record a last execution…
-
Post Views: 14 1. The existing implementation is as follows, is a nested preload, sql is as follows 2. Now you need to add constraints for items, and the final implementation is as follows 3. The generated SQL is as follows, which is in line with expectations. as shown in Figure 1
-
Post Views: 18 1. In spatie\QueryBuilder, an error is reported: call to undefined method spatie\QueryBuilder\\AllowedFilter::endsWithStrict(). as shown in Figure 1 2. Search in vendor/spatie/laravel-query-builder/src/allowedFilter.php: EndsWithStrict, confirm that the EndsWithStrict method does not exist. 3. Check composer.json , “spatie/laravel-query-builder”: “^5.2”, . Use composer to automatically update to the latest compatible version of the package, 5.2.0 => 5.7.0. as shown in Figure…