Commit 756ac1fa by 汪睦雄

123

parent 54f5c8c1
......@@ -47,7 +47,7 @@ class Order extends Base
'sign_limits' => 'require'
]);
$res = $validate->check(input('post.'));
if (!res) return ['code' => 1, 'msg' => $validate->getError()];
if (!$res) return ['code' => 1, 'msg' => $validate->getError()];
$project = ProjectModel::get(input('post.pid'));
if (!$project) {
return ['code' => 1, 'msg' => '该活动不存在'];
......@@ -332,10 +332,10 @@ class Order extends Base
$status = input('post.status/d', 1);
$order = OrderModel::where('status', $status)
->where('uid', $this->userinfo[0])
->where('type', config('order_type.project'))
->where('type', 1)
->page($p, $page)
->select();
$order = $order ? collection($order)->append(['status_info'])->toArray() : [];
$order = $order ? collection($order)->toArray() : [];
if (!$order) return ['code' => 1, 'msg' => '没有更多'];
return ['code' => 0, 'msg' => 'success', 'data' => $order];
}
......
......@@ -353,6 +353,6 @@ class Project extends Base
'remark' => input('post.remark'),
'uid' => $this->userinfo[0]
]);
return ['code' => 1, 'msg' => 'success'];
return ['code' => 0, 'msg' => '预约成功'];
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment