|
@@ -1118,18 +1118,7 @@ class User extends Api
|
|
|
$this->success('个人账单明细', $data);
|
|
|
}
|
|
|
|
|
|
- //关于我们/免责协议/用户协议/隐私政策/段位介绍
|
|
|
- public function getagreement()
|
|
|
- {
|
|
|
- $type = input('type', 0, 'intval');
|
|
|
- if (!in_array($type, [1, 2, 3, 4, 5, 6, 7, 8, 9])) {
|
|
|
- $this->error('参数错误');
|
|
|
- }
|
|
|
-
|
|
|
- $info = Db::name('platform_info')->field('title, content')->where(['type' => $type])->find();
|
|
|
|
|
|
- $this->success('协议', $info);
|
|
|
- }
|
|
|
|
|
|
//获取openid
|
|
|
public function getopenid() {
|
|
@@ -2129,4 +2118,17 @@ class User extends Api
|
|
|
|
|
|
$this->success('信息', $data);
|
|
|
}
|
|
|
+
|
|
|
+ //关于我们/免责协议/用户协议/隐私政策/段位介绍
|
|
|
+ public function getagreement()
|
|
|
+ {
|
|
|
+ $type = input('type', 0, 'intval');
|
|
|
+ if (!in_array($type, [1, 2, 3, 4, 5, 6, 7, 8, 9])) {
|
|
|
+ $this->error('参数错误');
|
|
|
+ }
|
|
|
+
|
|
|
+ $info = Db::name('platform_info')->field('title, content')->where(['type' => $type])->find();
|
|
|
+
|
|
|
+ $this->success('协议', $info);
|
|
|
+ }
|
|
|
}
|