feat : wx login
This commit is contained in:
30
app/Service/Api/User/BindPhoneByWxService.php
Normal file
30
app/Service/Api/User/BindPhoneByWxService.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* This service file is part of item.
|
||||
*
|
||||
* @author ctexthuang
|
||||
* @contact ctexthuang@qq.com
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Service\Api\User;
|
||||
|
||||
use App\Exception\ErrException;
|
||||
use App\Service\Api\BaseService;
|
||||
use App\Service\ServiceTrait\Api\GetUserInfoTrait;
|
||||
use App\Service\ServiceTrait\Api\WxMiniTrait;
|
||||
|
||||
class BindPhoneByWxService extends BaseService
|
||||
{
|
||||
use GetUserInfoTrait,WxMiniTrait;
|
||||
|
||||
public function handle()
|
||||
{
|
||||
$this->checkBindPhone($this->userId);
|
||||
|
||||
|
||||
|
||||
return $this->return->success();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user