短信组件

rabin 59917cf88e edit 1 year ago
api 1dc63c64f8 edit 6 years ago
config 1dc63c64f8 edit 6 years ago
database 855acfffe5 edit 2 years ago
lib 59917cf88e edit 1 year ago
sdk 1dc63c64f8 edit 6 years ago
src a6c23ff0c3 edit 6 years ago
LICENSE 1dc63c64f8 edit 6 years ago
README.md 223f6296df edit 6 years ago
index.php 855acfffe5 edit 2 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);