diff --git a/Application/Admin/Controller/MendController.class.php b/Application/Admin/Controller/MendController.class.php index a1d9bc50f..fdadcef2e 100644 --- a/Application/Admin/Controller/MendController.class.php +++ b/Application/Admin/Controller/MendController.class.php @@ -111,13 +111,16 @@ class MendController extends ThinkController { { $id = I('id'); $info = M("shift_task")->where("id = {$id} and status = 0")->find(); + if(empty($info)){ $this->error("补链不存在或已处理"); } $info['user_id'] = json_decode($info['shift_ids'])[0]; - $info['order_time'] = date("Y-m-d",$info['order_time']); + $info['order_time'] = date("Y-m-d",$info['order_time']); + $userid = $info['user_id']; + $info['account'] = M("User","tab_")->field("account")->where("id = '{$userid}'")->find()['account']; $this->assign('data',$info); $this->display(); } diff --git a/Application/Admin/View/Mend/shiftInfo.html b/Application/Admin/View/Mend/shiftInfo.html index dd6f0f9a8..768d1bd5c 100644 --- a/Application/Admin/View/Mend/shiftInfo.html +++ b/Application/Admin/View/Mend/shiftInfo.html @@ -57,7 +57,7 @@ 用户账号 - + @@ -82,13 +82,13 @@ - + 备注