|
@@ -94,7 +94,7 @@ class Wxfy
|
|
$a = "<?xml version=\"1.0\" encoding=\"GBK\" standalone=\"yes\"?><xml>" . $this->toXml($data) . "</xml>";
|
|
$a = "<?xml version=\"1.0\" encoding=\"GBK\" standalone=\"yes\"?><xml>" . $this->toXml($data) . "</xml>";
|
|
//
|
|
//
|
|
// //经过两次urlencode()之后的字符串
|
|
// //经过两次urlencode()之后的字符串
|
|
- // $b = "req=" .$a;
|
|
|
|
|
|
+ $b = "req=" .$a;
|
|
|
|
|
|
//通过curl的post方式发送接口请求
|
|
//通过curl的post方式发送接口请求
|
|
$url = "https://spay-mc.fuioupay.com/wxPreCreate";
|
|
$url = "https://spay-mc.fuioupay.com/wxPreCreate";
|
|
@@ -110,7 +110,7 @@ class Wxfy
|
|
dump($a);
|
|
dump($a);
|
|
die(var_dump($data));
|
|
die(var_dump($data));
|
|
}
|
|
}
|
|
- return json_encode($data);
|
|
|
|
|
|
+ return $a;
|
|
return $this->SendDataByCurl($url, $b);
|
|
return $this->SendDataByCurl($url, $b);
|
|
}
|
|
}
|
|
|
|
|