762 Star 7.5K Fork 2.6K

萤火科技/萤火商城V2.0

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Captcha.php 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
萤火科技 提交于 2025-06-20 19:16 +08:00 . v2.1.3
<?php
// +----------------------------------------------------------------------
// | 萤火商城系统 [ 致力于通过产品和服务,帮助商家高效化开拓市场 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2025 https://www.yiovo.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed 这不是一个自由软件,不允许对程序代码以任何形式任何目的的再发行
// +----------------------------------------------------------------------
// | Author: 萤火科技 <admin@yiovo.com>
// +----------------------------------------------------------------------
declare (strict_types=1);
namespace app\common\service\message\passport;
use app\common\service\message\Basics;
use app\common\enum\setting\sms\Scene as SettingSmsScene;
/**
* 消息通知服务 [短信验证码]
* Class Captcha
* @package app\common\service\message\passport
*/
class Captcha extends Basics
{
/**
* 发送消息通知
* @param array $param
* @return bool|mixed
* @throws \think\Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function send(array $param)
{
// 发送短信
if (!$this->sendSms(SettingSmsScene::CAPTCHA, $param['mobile'], ['code' => $param['code']])) {
throwError('短信发送失败:' . $this->getError());
}
return true;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/xany/yoshop2.0.git
git@gitee.com:xany/yoshop2.0.git
xany
yoshop2.0
萤火商城V2.0
master

搜索帮助