...
|
...
|
@@ -142,9 +142,11 @@ class AdminEquipmentController extends AdminBaseController{ |
|
|
Db::name('equipment')->where('id',$id)->update(['use'=>0]);
|
|
|
echo \db('equipment')->getLastSql();
|
|
|
\db('order')->where($map)->update($data);
|
|
|
echo \db('order')->getLastSql();
|
|
|
} catch (\Exception $e){
|
|
|
Db::rollback();
|
|
|
$this->error('操作失败!');
|
|
|
exit;
|
|
|
}
|
|
|
$this->success('操作成功!');
|
|
|
}
|
...
|
...
|
|