Openuse.php
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
// +----------------------------------------------------------------------
// | 狂团[kt8.cn]旗下KtAdmin是为独立版SAAS系统而生的快速开发框架.
// +----------------------------------------------------------------------
// | [KtAdmin] Copyright (c) 2022 http://ktadmin.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
namespace app\base\controller\admin\market;
use think\facade\Db;
use think\facade\Session;
use app\base\controller\BaseAdmin;
use app\base\model\admin\market\OpenuseModel;
class Openuse extends BaseAdmin
{
/*
* 已购应用列表
*/
public function allApp()
{
return OpenuseModel::allApp($this->req);
}
/*
* 已购应用列表
*/
public function list()
{
return OpenuseModel::list($this->req);
}
/*
* 已购应用列表
*/
public function updateStatus()
{
return OpenuseModel::updateStatus($this->req);
}
/*
* 获取代理折扣
*/
public function discount()
{
return OpenuseModel::discount();
}
/*
* 续费和购买
*/
public function buy()
{
return OpenuseModel::buy($this->req);
}
/*
* 用户订单列表(用户在用户后台购买)
*/
public function userOrder()
{
return OpenuseModel::userOrderList($this->req);
}
/*
* 套餐的开通与购买
*/
public function setmealBuy()
{
return OpenuseModel::setmealBuy($this->req);
}
}