|
|
@ -111,13 +111,16 @@ class MendController extends ThinkController {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$id = I('id');
|
|
|
|
$id = I('id');
|
|
|
|
$info = M("shift_task")->where("id = {$id} and status = 0")->find();
|
|
|
|
$info = M("shift_task")->where("id = {$id} and status = 0")->find();
|
|
|
|
|
|
|
|
|
|
|
|
if(empty($info)){
|
|
|
|
if(empty($info)){
|
|
|
|
$this->error("补链不存在或已处理");
|
|
|
|
$this->error("补链不存在或已处理");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$info['user_id'] = json_decode($info['shift_ids'])[0];
|
|
|
|
$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->assign('data',$info);
|
|
|
|
$this->display();
|
|
|
|
$this->display();
|
|
|
|
}
|
|
|
|
}
|
|
|
|