Esempio n. 1
0
 public function sendRedPack($data)
 {
     $data['mch_billno'] = time();
     $data['mch_id'] = c('weixin.mch_id');
     $data['wxappid'] = c('weixin.appid');
     $data['total_num'] = "1";
     //红包发放总人数
     $data['client_ip'] = Request::ip();
     $data['nonce_str'] = $this->getRandStr(16);
     $data['sign'] = $this->makeSign($data);
     $xml = Xml::toSimpleXml($data);
     $res = $this->curl_post_ssl("https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack", $xml);
     return Xml::toSimpleArray($res);
 }
Esempio n. 2
0
 /**
  * 获取HDCMS最新版信息
  * @return mixed
  */
 public function getHdcmsLatestVersion()
 {
     $res = Curl::get($this->url . "?a=cloud/hdcms_latest_version&t=web&siteid=1&m=store");
     return Xml::toSimpleArray($res);
 }
Esempio n. 3
0
 public function getNotifyMessage()
 {
     return Xml::toSimpleArray($GLOBALS['HTTP_RAW_POST_DATA']);
 }