This commit is contained in:
commie
2026-01-08 05:42:44 +08:00
parent 7439a4a794
commit c153975eed
1976 changed files with 776 additions and 133 deletions
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
+2 -2
View File
@@ -22,7 +22,7 @@ class Sms implements Consumer
}else{
$body = $this->getTemplate($data);
}
$url = 'http://api.smsbao.com/sms?u=aisiaisi8899&p='.md5('Aaa123123').'&m='.$data['mobile'].'&c='.urlencode($body);
$url = 'http://api.smsbao.com/sms?u=shunliao&p='.md5('Aaa1231232').'&m='.$data['mobile'].'&c='.urlencode($body);
$statusStr = array(
"0" => "短信发送成功",
"-1" => "参数不全",
@@ -47,7 +47,7 @@ class Sms implements Consumer
//var_export($data); // 输出 ['to' => 'tom@gmail.com', 'content' => 'hello']
}
function getTemplate($data){
$str = '【问析科技】验证码:{$code},该验证码在30分钟内输入有效,若非您本人操作请尽快修改登录密码';
$str = '【瞬聊】验证码:{$code},该验证码在5分钟内输入有效,若非您本人操作请尽快修改登录密码';
foreach($data as $k=>$v){
$str = str_replace('{$'.$k.'}',$v,$str);
}
Regular → Executable
View File
Regular → Executable
View File
View File
Regular → Executable
View File
Regular → Executable
View File