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 @@ 订单类型: - @@ -96,19 +96,19 @@ 支付订单号: - + CP订单号: - + 测试账号: - + @@ -122,13 +122,13 @@ 订单金额: - + 实付金额: - + @@ -159,7 +159,7 @@
- 提交保存 + 提交保存
@@ -203,6 +203,94 @@ } get_game_list(); + + + + diff --git a/Application/Admin/View/TestOrder/lists.html b/Application/Admin/View/TestOrder/lists.html index aa099e5bb..cfbc2bea7 100644 --- a/Application/Admin/View/TestOrder/lists.html +++ b/Application/Admin/View/TestOrder/lists.html @@ -216,6 +216,11 @@