예제 #1
0
파일: Cash.php 프로젝트: houdunwang/hdcms
 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);
 }
예제 #2
0
파일: Cloud.php 프로젝트: houdunwang/hdphp
 /**
  * 获取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);
 }
예제 #3
0
파일: Pay.php 프로젝트: houdunwang/hdcms
 public function getNotifyMessage()
 {
     return Xml::toSimpleArray($GLOBALS['HTTP_RAW_POST_DATA']);
 }