$map =['is_update'=> $data['is_updata]]
The is_ipdate in data is obtained from the session, and the session is obtained from the admin during login, then this $ data['is_updata] must be the same as in the table. How to verify it?
卢小强2019-10-12 08:31:36
if($model::get($map)){}else{} $model is your database. Use $map to determine whether there is a corresponding value in the database