public function Queryorder($data) { $input = new WxPayOrderQuery(); $input->SetTransaction_id($data['transaction_id']); $input->SetTradeType($data['trade_type']); $result = WxPayApi::orderQuery($input, Config::API_TIMEOUT); $this->query_data = $result; Log::DEBUG("query:" . json_encode($result)); if (array_key_exists("return_code", $result) && array_key_exists("result_code", $result) && $result["return_code"] == "SUCCESS" && $result["result_code"] == "SUCCESS") { return true; } return false; }