$error
$error :
阿里大于SMS短信发送
调用示例: public function send() { $mobile = $this->request->post('mobile'); $template = $this->request->post('template'); $sign = $this->request->post('sign'); $param = (array) json_decode($this->request->post('param')); $alisms = new \org\Alisms(); $ret = $alisms->mobile($mobile) ->template($template) ->sign($sign) ->param($param) ->send(); if ($ret) { $this->success("发送成功"); } else { $this->error("发送失败!失败原因:" . $alisms->getError()); } }
配置信息: return array ( 0 => array ( 'name' => 'key', 'title' => '应用key', 'type' => 'string', 'content' => array ( ), 'value' => 'your key', 'rule' => 'required', 'msg' => '', 'tip' => '', 'ok' => '', 'extend' => '', ), 1 => array ( 'name' => 'secret', 'title' => '密钥secret', 'type' => 'string', 'content' => array ( ), 'value' => 'your secret', 'rule' => 'required', 'msg' => '', 'tip' => '', 'ok' => '', 'extend' => '', ), 2 => array ( 'name' => 'sign', 'title' => '签名', 'type' => 'string', 'content' => array ( ), 'value' => 'your sign', 'rule' => 'required', 'msg' => '', 'tip' => '', 'ok' => '', 'extend' => '', ), );
instance(array  $options = array()) : \org\Alisms
                单例
| array | $options | 参数  | 
                            
sign(string  $sign = '') : \org\Alisms
                设置签名
| string | $sign | 
param(array  $param = array()) : \org\Alisms
                设置参数
| array | $param | 
template(string  $code = '') : \org\Alisms
                设置模板
| string | $code | 短信模板  | 
                            
mobile(string  $mobile = '') : \org\Alisms
                接收手机
| string | $mobile | 手机号码  |