Commit 7913c973 by 朱继来

添加判断

parent 161bd9eb
Showing with 4 additions and 2 deletions
...@@ -747,8 +747,10 @@ Class AddOrderController extends Controller ...@@ -747,8 +747,10 @@ Class AddOrderController extends Controller
{ {
$info = $this->getPageInfo($request); $info = $this->getPageInfo($request);
$order_id = $request->input('order_id'); $order_id = $request->input('order_id', 0);
$type = $request->input('type'); $type = $request->input('type', 1);
if (!$order_id) return redirect('/');
switch ($type) { switch ($type) {
case 1: $title = '新增联营订单'; break; case 1: $title = '新增联营订单'; break;
......
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 sign in to comment