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');