Commit 9e8174de by 杨树贤

绑定邮箱和手机接口

parent 032938a9
......@@ -4,12 +4,13 @@ namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Http\Services\UserService;
use Illuminate\Http\Request;
class UserController extends Controller
{
//绑定邮箱
public function bindEmail(\Request $request)
public function bindEmail(Request $request)
{
$ucId = $request->input('uc_id');
if (empty($ucId)) {
......@@ -24,7 +25,7 @@ class UserController extends Controller
}
//绑定手机号
public function bindMobile(\Request $request)
public function bindMobile(Request $request)
{
$ucId = $request->input('uc_id');
if (empty($ucId)) {
......
......@@ -6,4 +6,6 @@ use Illuminate\Support\Facades\Route;
Route::namespace('Api')->group(function () {
Route::match(["GET", "POST"], '/auth/register', 'AuthController@register');
Route::match(["GET", "POST"], '/auth/login', 'AuthController@login');
Route::match(["GET", "POST"], '/user/bindEmail', 'UserController@bindEmail');
Route::match(["GET", "POST"], '/user/bindMobile', 'UserController@bindMobile');
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment