示例#1
0
文件: JsSdk.php 项目: codelint/wechat
 public function consumeCard($token, $card_id, $card_code)
 {
     $entry = sprintf($this->consume_card_entry, $token);
     return Utils::postJSON($entry, array('card_id' => $card_id, 'code' => $card_code), $this->cert_path, $this->cert_key_path);
 }
示例#2
0
 /**
  *    作用:以post方式提交xml到对应的接口url
  */
 public function postXmlCurl($xml, $url, $second = 30)
 {
     return Utils::postXmlCurl($xml, $url, $second);
 }