Commit 2442a8d7 by feixiang

验证码注释

parent 917c563a
...@@ -24,13 +24,20 @@ interface CaptchaInterface ...@@ -24,13 +24,20 @@ interface CaptchaInterface
* @param int $template 模板id * @param int $template 模板id
* @param int $storeId 发送短信的id * @param int $storeId 发送短信的id
* @param int $validity 过期时间单位:分钟 * @param int $validity 过期时间单位:分钟
* @param int $num 位数 * @param int $num 验证码位数
* @param array $sendTime 定时发送时间 * @param array $sendTime 定时发送时间即时发送为[],定时发送格式为:[timestamp]
* @return mixed * @return int 验证码code
* *
*/ */
public function sendCode(string $phone, int $template, int $storeId, $validity=5,$num = 4, $sendTime=[]); 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); public function checkCode(int $code, string $phone, int $template);
} }
\ No newline at end of file
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