protected function formatArgs() { $args = parent::formatArgs(); $args['touser'] = $args['to']; unset($args['to']); return $args; }
protected function formatArgs() { $args = parent::formatArgs(); if (@$args['page_id']) { $args['page_id'] = intval($args['page_id']); } return $args; }
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; }
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; }
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; }
protected function formatArgs() { $args = parent::formatArgs(); return $args; }