ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
``` 显示默认数据库引擎 SHOW VARIABLES LIKE 'storage_engine'; 显示支持引擎 show engines; 查看某个表引擎 show create table task; 修改表引擎 alter table 表名 engine=innodb; static public function bidWinBid($data) { $status = Db::transaction(function() use($data){ self::where('id',$data['work_id'])->update(['status'=>1,'bid_at'=>date('Y-m-d H:s:i',time())]); $bounty = self::find($data['work_id'])->price; TaskModel::where('id',$data['task_id'])->update(['bounty' => $bounty,'status'=>5,'selected_work_at'=>date('Y-m-d H:i:s',time())]); }); if(is_null($status)){ self::sendTaskWidMessage($data); } return is_null($status)?true:false; } ```