Teacher, do the update conditions set here make sense?
Another丶2019-10-11 21:28:32
0
3
1234
$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?
if($model::get($map)){}else{} $model is your database. Use $map to determine whether there is a corresponding value in the database