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
75858ba8
Commit
75858ba8
authored
Mar 11, 2021
by
Morson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开放用户中心Dingxiang服务
parent
f011afcc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
Dingxiang.php
src/ucenter/Dingxiang.php
+40
-0
PhoneCode.php
src/ucenter/PhoneCode.php
+9
-0
No files found.
src/ucenter/Dingxiang.php
0 → 100644
View file @
75858ba8
<?php
namespace
internalApi\ucenter
;
use
internalApi\base\Client
;
class
Dingxiang
extends
Client
{
const
CATEGORY
=
'dun'
;
static
protected
$dun
;
/**
* @param $others 注册盾验证需要的其他参数
* @return mixed
*/
public
static
function
registerDun
(
$others
)
{
return
self
::
invoke
(
'/dun/registerDun'
,
func_get_args
());
}
/**
* @param $others 登陆盾验证需要的其他参数
* @return mixed
*/
public
static
function
loginDun
(
$others
)
{
return
self
::
invoke
(
'/dun/loginDun'
,
func_get_args
());
}
/**
* @param $others 验证码盾验证需要的其他参数
* @return mixed
*/
public
static
function
captcha
(
$others
)
{
return
self
::
invoke
(
'/dun/captcha'
,
func_get_args
());
}
}
\ No newline at end of file
src/ucenter/PhoneCode.php
View file @
75858ba8
...
@@ -19,6 +19,15 @@ use internalApi\base\ClientException;
...
@@ -19,6 +19,15 @@ use internalApi\base\ClientException;
*/
*/
class
PhoneCode
extends
Client
class
PhoneCode
extends
Client
{
{
const
ERR_PHONE
=
1
;
const
ERR_LIMITED
=
2
;
/**
* 限制发送验证码间隔秒数
* @var Integer
*/
const
LIMIT_SECONDS
=
60
;
/**
/**
* 向指定手机号码发送验证码
* 向指定手机号码发送验证码
* @param string $phone 手机号码
* @param string $phone 手机号码
...
...
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