Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
b7def8ec
Commit
b7def8ec
authored
Mar 11, 2021
by
Morson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开放用户中心验证码服务
parent
59750efe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
PhoneCode.php
src/ucenter/PhoneCode.php
+48
-0
No files found.
src/ucenter/PhoneCode.php
0 → 100644
View file @
b7def8ec
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2021/03/11
* Time: 15:08
*/
namespace
internalApi\ucenter
;
use
internalApi\base\ApiException
;
use
internalApi\base\Client
;
use
internalApi\base\ClientException
;
/**
* 用户中心验证码服务
*
* @package internalApi\ucenter
*/
class
PhoneCode
extends
Client
{
/**
* 向指定手机号码发送验证码
* @param string $phone 手机号码
* @param string $type
* @return mixed
* @throws ApiException
* @throws ClientException
*/
public
static
function
send
(
string
$phone
,
$type
=
''
)
{
return
self
::
invoke
(
'/phoneCode/send'
,
func_get_args
());
}
/**
* @param string $phone 手机号码
* @param string $code 验证码
* @return mixed
* @throws ApiException
* @throws ClientException
*/
public
static
function
check
(
string
$phone
,
string
$code
)
{
return
self
::
invoke
(
'/phoneCode/check'
,
func_get_args
());
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment