dever 3 年之前
父節點
當前提交
c5b4d98b98
共有 1 個文件被更改,包括 4 次插入0 次删除
  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()
 		{