dever 6 years ago
parent
commit
b1e060b5de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Wechat.php

+ 1 - 1
lib/Wechat.php

@@ -141,7 +141,7 @@ class Wechat extends Core
 	{
 	{
 		if (isset($order['mweb_url'])) {
 		if (isset($order['mweb_url'])) {
 			$order['mweb_url'] .= '&redirect_url=' . $refer;
 			$order['mweb_url'] .= '&redirect_url=' . $refer;
-			return Dever::location($order['mweb_url']);
+			return '<script type="text/javascript">location.href = "' . $order['mweb_url'] . '"</script>';
 		}
 		}
 		$refer = urldecode($refer);
 		$refer = urldecode($refer);
 		$tools = new \JsApiPay($this->config);
 		$tools = new \JsApiPay($this->config);