Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
aa3ff58f
Commit
aa3ff58f
authored
Nov 06, 2018
by
feixiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发送验证码服务
parent
ed478306
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
src/Notice/Lib/CaptchaInterface.php
+37
-0
No files found.
src/Notice/Lib/CaptchaInterface.php
0 → 100644
View file @
aa3ff58f
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/11/5
* Time: 16:26
*/
namespace
Hdll\Services\Notice\Lib
;
use
Swoft\Core\ResultInterface
;
/**
* @method ResultInterface deferSendCode(string $phone, int $template, int $storeId, $validity=5,$num = 4, $sendTime=[]);
* @method ResultInterface deferCheckCode(int $code, string $phone, int $template)
*
* Interface CaptchaInterface
* @package Hdll\Services\Notice\Lib
*/
interface
CaptchaInterface
{
/**
* @param string $phone 手机号
* @param int $template 模板id
* @param int $storeId 发送短信的id
* @param int $validity 过期时间单位:分钟
* @param int $num 位数
* @param array $sendTime 定时发送时间
* @return mixed
*
*/
public
function
sendCode
(
string
$phone
,
int
$template
,
int
$storeId
,
$validity
=
5
,
$num
=
4
,
$sendTime
=
[]);
public
function
checkCode
(
int
$code
,
string
$phone
,
int
$template
);
}
\ No newline at end of file
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