示例#1
0
文件: msg.php 项目: qujian/ydwx
 protected function formatArgs()
 {
     $args = parent::formatArgs();
     $args['touser'] = $args['to'];
     unset($args['to']);
     return $args;
 }
示例#2
0
文件: zb.php 项目: qujian/ydwx
 protected function formatArgs()
 {
     $args = parent::formatArgs();
     if (@$args['page_id']) {
         $args['page_id'] = intval($args['page_id']);
     }
     return $args;
 }
示例#3
0
文件: poi.php 项目: qujian/ydwx
 protected function formatArgs()
 {
     $args = YDWXRequest::ignoreNull(parent::formatArgs());
     $array = array();
     $args['categories'] = (array) $this->categories;
     $photos = array();
     foreach ((array) $this->photo_list as $photo) {
         $photos[] = array("photo_url" => $photo);
     }
     $args['photo_list'] = $photos;
     $array['business']['base_info'] = $args;
     return $array;
 }
示例#4
0
文件: pay.php 项目: qujian/ydwx
 public function formatArgs()
 {
     if (!YDWX_WEIXIN_COMPONENT_APP_ID) {
         if (YDWX_WEIXIN_ACCOUNT_TYPE == YDWX_WEIXIN_ACCOUNT_TYPE_CROP) {
             $this->appid = YDWX_WEIXIN_CROP_ID;
         } else {
             $this->appid = YDWX_WEIXIN_APP_ID;
         }
         $this->mch_id = YDWX_WEIXIN_MCH_ID;
         $this->mch_key = YDWX_WEIXIN_MCH_KEY;
     }
     if (!$this->nonce_str) {
         $this->nonce_str = uniqid();
     }
     $args = parent::formatArgs();
     unset($args['mch_key']);
     return $args;
 }
示例#5
0
文件: packet.php 项目: qujian/ydwx
 protected function formatArgs()
 {
     if (!$this->nonce_str) {
         $this->nonce_str = uniqid();
     }
     $args = parent::formatArgs();
     $args['total_num'] = 1;
     $args['total_amount'] = intval($args['total_amount']);
     unset($args['mch_key']);
     return $args;
 }
示例#6
0
文件: card.php 项目: qujian/ydwx
 protected function formatArgs()
 {
     $args = parent::formatArgs();
     return $args;
 }