Commit 75858ba8 authored by Morson's avatar Morson

开放用户中心Dingxiang服务

parent f011afcc
<?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
...@@ -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 手机号码
......
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 to comment