diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 8ebfc1ae6..247487a52 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -317,6 +317,31 @@ function get_pay_way($id=null) break; } } + +/** + * 获取订单类型 + * + * @param null $id + * @return string + */ +function get_order_type($id=null) +{ + switch ($id) { + case 1: + return "sdk充值订单"; + break; + case 2: + return "平台币充值订单"; + break; + case 3: + return "超级签充值订单"; + break; + default: + return '未知'; + break; + } +} + function get_pay_way_map($id) { if(!isset($id)){ diff --git a/Application/Admin/Controller/TestOrderController.class.php b/Application/Admin/Controller/TestOrderController.class.php new file mode 100644 index 000000000..e022e39f5 --- /dev/null +++ b/Application/Admin/Controller/TestOrderController.class.php @@ -0,0 +1,81 @@ +where($map)->select(); + $sum_order_amount = M('test_order', 'tab_')->where($map)->field('sum(order_amount) as sum_order_amount')->find(); + $sum_pay_amount = M('test_order', 'tab_')->where($map)->field('sum(pay_amount) as sum_order_amount')->find(); + $this->assign('datas', $order_list); + $this->assign('sum_order_amount', $sum_order_amount); + $this->assign('sum_pay_amount', $sum_pay_amount); + $this->display(); + } + + public function addOrder(){ + $this->display(); + } + + public function saveOrder() { + + $data = $_GET; + +// dump($data);die(); + $data['add_time'] = time(); + $data['pay_time'] = strtotime($data['pay_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 new file mode 100644 index 000000000..700acc551 --- /dev/null +++ b/Application/Admin/View/TestOrder/addOrder.html @@ -0,0 +1,297 @@ + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
服务器类型: + +
订单类型: + +
支付订单号: + +
CP订单号: + +
测试账号: + +
选择游戏: + +
订单金额: + +
实付金额: + +
充值方式: + +
充值时间: + +
+ +
+
+ + + + + + + diff --git a/Application/Admin/View/TestOrder/lists.html b/Application/Admin/View/TestOrder/lists.html new file mode 100644 index 000000000..d4d8c326e --- /dev/null +++ b/Application/Admin/View/TestOrder/lists.html @@ -0,0 +1,281 @@ + + + + + + + + + + + +
+ + +
+ + +
+ +
+
+ +
+
+   +
+
+   +
+
+ + - +
+ + +
+
+ +
+ +
+ +
+ 搜索 + + +
+ +
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
服务器类型订单类型支付订单号cp订单号测试账号充值时间游戏名称订单金额实付金额充值方式录入时间
aOh! 暂时还没有内容!
测试内网测试外网{$data.order_type|get_order_type}{$data.order_no}{$data.cp_order_no}{$data.user_account}{$data.pay_time|date='Y-m-d H:i:s',###}{$data.game_name}{$data.order_amount}{$data.pay_amount}{$data.pay_way|get_pay_way}{$data.add_time|date='Y-m-d H:i:s',###}
总计------------------------------------{$sum_order_amount['sum_order_amount']}{$sum_pay_amount['sum_order_amount']}------------
+
+
+
+ + {$_page|default=''} +
+
+ + + + + + if(C('COLOR_STYLE')=='blue_color') echo ''; + + + + +