function create_url() { $url = $this->gateway; $sort_array = array(); $sort_array = arg_sort($this->parameter); $arg = create_linkstring_urlencode($sort_array); $url .= $arg . "&sign=" . $this->mysign . "&sign_type=" . $this->sign_type; return $url; }
function create_url() { $url = $this->gateway; $sort_array = array(); $sort_array = arg_sort($this->parameter); $arg = create_linkstring_urlencode($sort_array); //把数组所有元素,按照“参数=参数值”的模式用“&”字符拼接成字符串 //把网关地址、已经拼接好的参数数组字符串、签名结果、签名类型,拼接成最终完整请求url $url .= $arg . "&sign=" . $this->mysign . "&sign_type=" . $this->sign_type; return $url; }