作者 sgj
1 个管道 的构建 通过 耗费 0 秒

add stop equipment

@@ -140,7 +140,7 @@ class AdminEquipmentController extends AdminBaseController{ @@ -140,7 +140,7 @@ class AdminEquipmentController extends AdminBaseController{
140 $data['time']=ceil((time()-$order['start_time'])/3600); 140 $data['time']=ceil((time()-$order['start_time'])/3600);
141 Db::startTrans(); 141 Db::startTrans();
142 try{ 142 try{
143 - Db::name('equipment')->where('id',$id)->update(['use'=>0]); 143 + \db('equipment')->where('id',$id)->update(['use'=>0]);
144 // echo \db('equipment')->getLastSql(); 144 // echo \db('equipment')->getLastSql();
145 \db('order')->where($map)->update($data); 145 \db('order')->where($map)->update($data);
146 $user_updata['is_use']=0; 146 $user_updata['is_use']=0;