From ad484be9fb20121f815139a9c2bbfa64814e84f5 Mon Sep 17 00:00:00 2001 From: 1748153932 <1748153932@qq.com> Date: Tue, 12 Dec 2023 16:54:56 +0800 Subject: [PATCH] 111 --- app/controller/api/user/User.php | 14 ++++++++++++++ route/api.php | 8 ++++++++ 2 files changed, 22 insertions(+) diff --git a/app/controller/api/user/User.php b/app/controller/api/user/User.php index 1b0d602..630d56b 100644 --- a/app/controller/api/user/User.php +++ b/app/controller/api/user/User.php @@ -317,6 +317,20 @@ class User extends BaseController return app('json')->success($this->repository->selfUserList($user->phone)); } + //wmc + //分享视频/推文增加品宣积分 + public function brand() + { + $user = $this->user->uid; + $type = $this->request->param('type'); + + //用户每天只能邀请10个人 多了就不加了 + //加100分 + //加到log日志 + + return app('json')->success('分享成功'); + } + public function switchUser() { $uid = (int)$this->request->param('uid'); diff --git a/route/api.php b/route/api.php index d91fe39..01de758 100644 --- a/route/api.php +++ b/route/api.php @@ -106,6 +106,14 @@ Route::group('api/', function () { Route::group('user', function () { //切换账号 Route::get('account', 'User/account'); + + //wmc + //分享视频/推文增加品宣积分 + Route::get('brand', 'User/brand'); + + + + Route::post('switch', 'User/switchUser'); //修改信息 Route::post('change/phone', 'User/changePhone');