Tag: message
-
Post Views: 15 1. Refer to Shopify, when the resource does not exist, respond to “message”: “Invalid global idddd”. As shown in Figure 1 2. The API response of the final reference is implemented. as shown in Figure 2 3. Shopify’s API to query a single resource, when the resource does not exist, the response logic of the response is…
-
Post Views: 13 1. Reference:https://www.shuijingwanwq.com/2022/04/26/6341/ 2. After a period of time, I suddenly found that the translation in the message of the custom verification rule is not available. Message that responds when validation fails is not translated. as shown in Figure 1 3. Reference:https://www.shuijingwanwq.com/2022/06/29/6707/, after deleting the Implements DeferrableProvider, then clear the directory: /bootstrap/cache, the translation works normally. as shown…
-
Post Views: 62 1. In K8S, the HTTP response 502 Bad Gateway, Message: an invalid response was received from the upstream server. Received an invalid response from the upstream server. 502 Bad Gateway error specifically indicates that the server received an invalid response from the inbound server. Kong/2.5.0. as shown in Figure 1 2. The reason is that the GET…
-
Post Views: 17 1. Error in Yii 2.0: ExceptionYii\Base\InvalidConfigExceptionwith messageUnable to local message source for categoryError.. as shown in Figure 1 2. Edit ccp/config/console.php, add components: i18n 3. Run the command line again, and report an error: ExceptionYii\Web\NotFoundHttpExceptionwith message205064. as shown in Figure 2 4. Create a new directory, /ccp/messages. The contents of the file /ccp/messages/en-cn/error.php are as follows. as…
-
Post Views: 17 1. When a permanent graphic material is added to the WeChat public account, an error is reported: errcode, 88000; errmsg: without comment privilege hint:[H4ZZ7a0344ha16]Rid: 60E80CB8-1544F534-4F195AEA. as shown in Figure 1 2. On another public account, there is no error. Compare the differences between the two public accounts. The successful public account has been found, and it has…
-
Post Views: 16 1. The previous implementation is as follows, the configuration file in the public directory, \common\config\main.php, the international configuration is as follows: 2. The files in the message directory (messages) in the public directory are as follows: \common\messages\zh-cn\error.php \common\messages\zh-cn\error.php 3. The files in the message directory (Messages) in the interface application are as follows: \API\Messages\zh-cn\Error.php \API\Messages\zh-cn\success.php 4. The…
-
Post Views: 16 1. The model class file in the /common/models directory is only allowed to be generated by the GII tool, which is the common model data layer, \common\models\configcolumn.php, the relevant verification rules of the model 2. The model class file in the /common/logics directory is related to business logic, which is inherited to /common/models The data layer is…