diff --git a/Application/Admin/Controller/TestOrderController.class.php b/Application/Admin/Controller/TestOrderController.class.php index ad37f8bbe..fffb929ac 100644 --- a/Application/Admin/Controller/TestOrderController.class.php +++ b/Application/Admin/Controller/TestOrderController.class.php @@ -18,4 +18,22 @@ class TestOrderController extends ThinkController public function addOrder(){ $this->display(); } + + public function saveOrder() { + + $data = $_GET; + +// dump($data);die(); + $data['add_time'] = time(); + $data['game_name'] = get_gamename($data['game_id']); + + $isSuccess = M('test_order','tab_')->add($data); + + if ($isSuccess) { + $this->ajaxReturn(['status'=>1]); + } else { + $this->ajaxReturn(['status'=>0]); + } + + } } \ No newline at end of file diff --git a/Application/Admin/View/TestOrder/addOrder.html b/Application/Admin/View/TestOrder/addOrder.html index c2101129e..700acc551 100644 --- a/Application/Admin/View/TestOrder/addOrder.html +++ b/Application/Admin/View/TestOrder/addOrder.html @@ -85,7 +85,7 @@