1. For example: I use yii api to write the interface for submitting orders
- for example, the information in the form is verified at the front end. How can I implement the verification?
- used to use form model validation rules and load to load data. Do you still need to write this?
//
$deliveryForm = new SalesOrderDelivery();
//
$deliveryForm->load($post_param);
- api is only for the company"s own use, and session is used in some places, is that right?
- for example, for my order API, I can verify whether there is user information in the session directly on the server. Is it necessary to add access token?