how to use thinkPHP model to update update_time in DB automatically
Must use update first then where, the update data must contain the primary key of the table otherwise can not updated automatically.
if(PositionModel::update($data)->where(‘id’, $applied_id)){
retu...
原创
2018-11-28 16:04:11 ·
143 阅读 ·
0 评论