\App\Support\SmsSmsDriver

短信驱动接口

职责:定义短信发送的统一契约。当前唯一实现 = HttpSmsDriver (一切服务商差异走配置:URL/参数模板/签名模式/凭证),新增服务商零代码; 后续出现非 HTTP 形态的通道(如本地网关设备)才需要新驱动。

Summary

Methods
Constants
send()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

send()

send(string  $phone, string  $content, array<string,mixed>  $data = []) : void

发送短信。

Parameters

string $phone
string $content
array $data

模板渲染变量(占位/服务商模板参数用)

Throws

\RuntimeException

发送失败