dever há 3 anos atrás
pai
commit
c5b4d98b98
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      lib/Wechat.php

+ 4 - 0
lib/Wechat.php

@@ -229,6 +229,10 @@ class Wechat extends Core
 		$tools = new \JsApiPay($this->config);
 		$info = $tools->GetJsApiParameters($order);
 
+		if ($refer == 'param') {
+			return json_decode($info, true);
+		}
+
 		$html = '<script type="text/javascript">
 		function jsApiCall()
 		{