Ejemplo n.º 1
0
 public function recharge($data = array())
 {
     if (!array_key_exists('mobile', $data)) {
         return new Result(null, $data, null, $error = 'mobile 为空');
     }
     $data['apikey'] = $this->apikey;
     return HttpUtil::PostCURL($this->yunpian_config['URI_RECHARGE_FLOW'], $data);
 }
Ejemplo n.º 2
0
 public function del($data = array())
 {
     if (!array_key_exists('tpl_id', $data)) {
         return new Result(null, $data, null, $error = 'tpl_id 为空');
     }
     $data['apikey'] = $this->apikey;
     return HttpUtil::PostCURL($this->yunpian_config['URI_DEL_TEMPLATE'], $data);
 }
Ejemplo n.º 3
0
 public function tpl_send($data = array())
 {
     if (!array_key_exists('mobile', $data)) {
         return new Result(null, $data, null, 'mobile 为空');
     }
     if (!array_key_exists('tpl_id', $data)) {
         return new Result(null, $data, null, 'tpl_id 为空');
     }
     if (!array_key_exists('tpl_value', $data)) {
         return new Result(null, $data, null, 'tpl_value 为空');
     }
     $data['apikey'] = $this->apikey;
     return HttpUtil::PostCURL($this->yunpian_config['URI_SEND_TPL_SMS'], $data);
 }
Ejemplo n.º 4
0
 public function pull_status($data = array())
 {
     $data['apikey'] = $this->apikey;
     return HttpUtil::PostCURL($this->yunpian_config['URI_PULL_VOICE_STATUS'], $data);
 }
Ejemplo n.º 5
0
 public function set($data = array())
 {
     $data['apikey'] = $this->apikey;
     return HttpUtil::PostCURL($this->yunpian_config['URI_SET_USER_INFO'], $data);
 }