Author: 永夜
-
Post Views: 31 1. The code in the view is implemented as follows when the url ishttp://official.local/casetime, generated , the image address ishttp://official.local/static/images/header/top.png,响应200 when the url ishttp://official.local/case/time, generated , the image address ishttp://official.local/case/images/top.png, response 404. How to solve it? as shown in Figure 1 2. Viewhttp://official.local/case/page source code, generated , the image address ishttp://official.local/case/images/top.png, response 404. as shown in Figure…
-
Post Views: 24 1. Due to the front-end, the same page, for mobile devices and desktop devices, is a separate page. Therefore, you need to detect whether it is a mobile device in PHP 7.4, which in turn renders different template files 2. Reference:mobile-detect . Only the latest version of 3.* can be used, because PHP 7.4 is now used,…
-
Post Views: 33 1. Error when executing database migration in YII2: ExceptionYii\di\NotInstantableExceptionwith messageFailed to instantiate component or class “m220810_154914_create_table_access_tokens”.. as shown in Figure 1 2. This migration file is copied from other projects. The contents of the file are as follows 3. The specific reason has not been found for the time being, and it is decided to create a…
-
Post Views: 30 1. The existing implementation, an interface, is to obtain Alipay’s payment link in WeChat (requires login), and there is a callback interface (requires a signature), and a query interface (requires login). Now that payment online payment can only be made in the system browser, the query interface needs to be set to visitor accessible. In order to…
-
Post Views: 49 1. When the Alipay refund is implemented based on Riverslei/Payment, an error is reported: request get failed, msg[Invalid Arguments], sub_msg[验签出错,建议检查签名字符串或签名私钥与应用公钥是否匹配。如图1 #atfp_close_translate_span# 2. What you provide is an RSA private key in pkcs#1 (starting with miievq…, without the head and tail identification), you need to convert it to rsa in pkcs#8 format through the openssl command The private…
-
Post Views: 38 1. Error: Error: Expected Response Code 354 But Got Code “503”, with message “503 Bad Sequence of Commands”[@sm190202]” . As shown in Figure 1 2. SMTP rejects the preparation steps before the data command. This is a common specific trigger point for 503, usually caused by missing or errors in rcpt to . Make sure that $this->to…
-
Post Views: 32 1. In yii2, an update interface, if the records in the table have been deleted before executing save(), it will still return ture, whether this situation needs to be avoided. as shown in Figure 1 2. The code is implemented as follows 3. Decide not to adjust for the time being.
-
Post Views: 31 1. The existing implementation is as follows. After the verification of the field itself fails, the interface response will always be: the database operation fails, please contact the administrator, the user experience is not friendly. as shown in Figure 1 2. Hope to achieve the following, 1. Do not expose database exceptions (such as SQL errors, PDO…