dever 6 anni fa
parent
commit
b30639d487
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  1. 2 4
      lib/Wechat.php

+ 2 - 4
lib/Wechat.php

@@ -142,10 +142,8 @@ class Wechat extends Core
 	public function page($order, $refer)
 	{
 		if (isset($order['mweb_url'])) {
-			$order['mweb_url'] .= '&redirect_url=' . $refer;
-			//$refer = urlencode($order['mweb_url']);
-			//$url = Dever::url('api.jump?refer=' . $refer, 'pay');
-			return '<script type="text/javascript">location.href = "' . $order['mweb_url'] . '"</script>';
+			$url = $order['mweb_url'] . '&redirect_url=' . $refer;
+			return '<script type="text/javascript">location.href = "' . $url . '"</script>';
 		}
 		$refer = urldecode($refer);
 		$tools = new \JsApiPay($this->config);