sms_aliyun

Component ID

2896365

Component name

sms_aliyun

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

147

Component created

Component changed

Component body

咱就说中国话哈。
一、安装方法:
1. 如果你是用composer创建的工程,那安装很方便,直接

a. composer require  drupal/sms_aliyun
b. drush en sms_aliyun

2.如果不是,则

a. composer require flc/dysms
b. drush dl sms_aliyun
c. drush en sms_aliyun

二、使用方法:
1. 你要有阿里云短信的签名和模板。(阿里大于已经迁移到了阿里云)
2. 先安装smsframework模块。
3. 去admin/config/gateway设置阿里云网关。
4. 去admin/config/smsframework/phone_number添加user。
三、注意:
1. 由于阿里云的模板变量不支持链接,并且变量字数限制为15个字,所以需要修改admin/config/smsframework/phone_number/user.user中的校验信息,比如只留下:
[sms-message:verification-code]。
2. 目前只支持短信的发出。
3. 目前只支持一个模板。
四、计划:
电话验证是在注册的时候用的,但是验证以后不能立即注册和登陆,感觉很不实用(不符合国情?)。计划下一版,直接用短信和验证码的注册及登陆。