|
@@ -128,7 +128,7 @@ class Wechat extends Api
|
|
|
|
|
|
$mch_id = Company::where('id', $cid)->value('pay_weixin_mchid');
|
|
$mch_id = Company::where('id', $cid)->value('pay_weixin_mchid');
|
|
$key = Company::where('id', $cid)->value('pay_weixin_key');
|
|
$key = Company::where('id', $cid)->value('pay_weixin_key');
|
|
- @file_put_contents("quanju.txt", $key . "-签约内容\r\n", 8);
|
|
+ @file_put_contents("quanju.txt", $key . "-key\r\n", 8);
|
|
$contract_code = $this->generateRandomString(12);
|
|
$contract_code = $this->generateRandomString(12);
|
|
$notify_url = Request::instance()->domain() . "/api/wechat/notify/" . $cid;
|
|
$notify_url = Request::instance()->domain() . "/api/wechat/notify/" . $cid;
|
|
|
|
|
|
@@ -328,9 +328,9 @@ class Wechat extends Api
|
|
|
|
|
|
$content = curl_exec($ch);
|
|
$content = curl_exec($ch);
|
|
curl_close($ch);
|
|
curl_close($ch);
|
|
- $content = json_decode($content, true);
|
|
+
|
|
|
|
|
|
-
|
|
+ var_dump($content);die();
|
|
return $content;
|
|
return $content;
|
|
}
|
|
}
|
|
|
|
|