public function doEdit(Request $request)
{
$data = $request ->except('shebei');
$condition = ['id'=> data['id']];
$result = GongyikaModel::update($data,$condition);
$ #. # if (true == $result) {
$status = 1;
return ['status'=>$status , 'message'=>$message];
}
#請問老師$data['id']這個ID運行時候咋取得不到是空的
#
return $this->view->fetch('gongyikabianji');
}
public function doEdit(Request $request)
{
$data = $request ->except('shebei');
$condition = ['id'=>$data['id']];
$result = GongyikaModel::update($data,$condition);
$status = 0;
$message = '更新失败,请检查';
if (true == $result) {
$status = 1;
$message = '恭喜, 更新成功~~';
}
return ['status'=>$status, 'message'=>$message];
}
##