In Yii2, an interface does not want to expose the SQL error in the interface response, but also hopes that the validation error of the exposed field itself is in the interface response, how should it be implemented?
浏览量: 14 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...
Recent Comments