|
@@ -165,7 +165,8 @@ class Wechat extends Api
|
|
|
$xml = $xml . $key . '=' . $value . '&';
|
|
|
}
|
|
|
$xml = substr($xml, 0, -1);
|
|
|
- @file_put_contents("quanju.txt", json_encode($xml) . "-签约内容\r\n", 8);
|
|
|
+ @file_put_contents("quanju.txt", $xml . "-签约内容\r\n", 8);
|
|
|
+ var_dump($xml);die();
|
|
|
$sign = $this->md5_sign($xml, '192006250b4c09247ec02edce69f6a2d');
|
|
|
@file_put_contents("quanju.txt", $sign . "-签名\r\n", 8);
|
|
|
$url = 'https://api.mch.weixin.qq.com/papay/entrustweb?' . $xml . '&sign=' . $sign;
|
|
@@ -173,7 +174,7 @@ class Wechat extends Api
|
|
|
// var_dump($url);
|
|
|
$response = $this->curl_get($url);
|
|
|
// $url = $this->OfficialAccountSigning($app_id, $mch_id, $plan_id, $contract_code, $request_serial, $contract_display_account, $notify_url, $version, $sign, $timestamp);
|
|
|
- @file_put_contents("quanju.txt", $response . '返回链接');
|
|
|
+ @file_put_contents("quanju.txt", $response . "-返回链接\r\n", 8);
|
|
|
|
|
|
WechatPlanRecord::create([
|
|
|
'uid' => $uid,
|