You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
838 B
PHTML

<?php
namespace Admin\Controller;
use Org\Util\Date;
use Sdk\Controller\AgeController;
use User\Api\MemberApi as MemberApi;
use Org\WeixinSDK\Weixin;
class TestOrderController extends ThinkController
{
public function lists($p = 0) {
$order_list = M('test_order', 'tab_')->select();
$this->assign('datas', $order_list);
$this->display();
}
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]);
}
}
}