Commit aa3ff58f by feixiang

发送验证码服务

parent ed478306
<?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
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