dever 7ca65e0336 edit 3 years ago
..
api 7ca65e0336 edit 3 years ago
config 7ca65e0336 edit 3 years ago
database 7ca65e0336 edit 3 years ago
lib 7ca65e0336 edit 3 years ago
sdk 7ca65e0336 edit 3 years ago
src 7ca65e0336 edit 3 years ago
LICENSE 7ca65e0336 edit 3 years ago
README.md 7ca65e0336 edit 3 years ago
index.php 7ca65e0336 edit 3 years ago

README.md

短信组件

发送短信

# 短信模板标识
$skin = 'k1';
# 手机号
$mobile = Dever::input('mobile');
# 一些参数
$param = array
(
	'content' => '自定义的内容',
);
$send['skin'] = $skin;
$send['mobile'] = $mobile;
$send['param'] = $param;
return Dever::load('sms/api.send, $send);

发送验证码

# 短信模板标识
$skin = 'k1';
# 手机号
$mobile = Dever::input('mobile');
$send['skin'] = $skin;
$send['mobile'] = $mobile;
return Dever::load('sms/api.sendCode', $send);