Browse Source

Merge branch 'master' of http://git.dever.cc:3000/dever-package/pay

dever 6 years ago
parent
commit
8699d2a3a2
2 changed files with 4 additions and 3 deletions
  1. 2 1
      lib/Wechat.php
  2. 2 2
      src/Api.php

+ 2 - 1
lib/Wechat.php

@@ -146,7 +146,8 @@ class Wechat extends Core
 					{
 						location.href = "'.$refer.'";
 					} else {
-						alert(res.err_code+res.err_desc+res.err_msg);
+						alert("支付失败");
+						//alert(res.err_code+res.err_desc+res.err_msg);
 					}
 				}
 			);

+ 2 - 2
src/Api.php

@@ -68,7 +68,7 @@ class Api
 	 *
 	 * @return mixed
 	 */
-	public function page()
+	public function page($param = array())
 	{
 		$this->init($param);
 		if (!$this->refer) {
@@ -82,7 +82,7 @@ class Api
 	 *
 	 * @return mixed
 	 */
-	public function qrcode()
+	public function qrcode($param = array())
 	{
 		$this->init($param);
 		$url = $this->method->qrcode($this->get(2), $this->refer);