public function edit($runtime, $id) { $bean = Boxs::i($id); if ($bean->mac) { $bean->runtime = $runtime; $flag = $bean->save(); } return $flag; }