@ -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');
@ -106,6 +106,14 @@ Route::group('api/', function () {
Route::group('user', function () {
//切换账号
Route::get('account', 'User/account');
Route::get('brand', 'User/brand');
Route::post('switch', 'User/switchUser');
//修改信息
Route::post('change/phone', 'User/changePhone');