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
2442a8d7
Commit
2442a8d7
authored
Nov 06, 2018
by
feixiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验证码注释
parent
917c563a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
src/Notice/Lib/CaptchaInterface.php
+11
-3
No files found.
src/Notice/Lib/CaptchaInterface.php
View file @
2442a8d7
...
...
@@ -24,13 +24,20 @@ interface CaptchaInterface
* @param int $template 模板id
* @param int $storeId 发送短信的id
* @param int $validity 过期时间单位:分钟
* @param int $num 位数
* @param array $sendTime 定时发送时间
* @return
mixed
* @param int $num
验证码
位数
* @param array $sendTime 定时发送时间
即时发送为[],定时发送格式为:[timestamp]
* @return
int 验证码code
*
*/
public
function
sendCode
(
string
$phone
,
int
$template
,
int
$storeId
,
$validity
=
5
,
$num
=
4
,
$sendTime
=
[]);
/**
* 验证验证码
* @param int $code 验证码
* @param string $phone 手机号
* @param int $template 模板id
* @return bool
*/
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