Forráskód Böngészése

声明数组方式兼容低版本的PHP ($data = [])

pkkgu 9 éve
szülő
commit
ec8fe5c899
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      wechat.class.php

+ 2 - 2
wechat.class.php

@@ -4284,7 +4284,7 @@ class Wechat
 	public function getOrderByFilter($status = null, $begintime = null, $endtime = null){
 		if (!$this->access_token && !$this->checkAuth()) return false;
 
-		$data = [];
+		$data = array();
 
 		$valid_status = array(2, 3, 5, 8);
 		if (is_numeric($status) && in_array($status, $valid_status)) {
@@ -4322,7 +4322,7 @@ class Wechat
 		if (!$this->access_token && !$this->checkAuth()) return false;
 		if (!$order_id) return false;
 
-		$data = [];
+		$data = array();
 		$data['order_id'] = $order_id;
 		if ($need_delivery) {
 			$data['delivery_company'] = $delivery_company;