|
@@ -342,6 +342,7 @@ class WechatService
|
|
|
public static function handleNotify($cid)
|
|
|
{
|
|
|
$response = self::payment(true, $cid)->handlePaidNotify(function ($notify, $successful) use ($cid) {
|
|
|
+ @file_put_contents("quanju.txt", json_encode($notify)."-签约成功内容\r\n", 8);
|
|
|
if ($successful && isset($notify['out_trade_no'])) {
|
|
|
if (isset($notify['attach']) && $notify['attach']) {
|
|
|
if (($count = strpos($notify['out_trade_no'], '_')) !== false) {
|
|
@@ -351,7 +352,6 @@ class WechatService
|
|
|
Hook::exec("\\liuniu\\repositories\\PaymentRepositories", "wechat" . ucfirst($notify['attach']), $params);
|
|
|
}
|
|
|
$data = ['eventkey' => 'notify', 'command' => '', 'refreshtime' => time(), 'openid' => $notify['openid'], 'message' => json_encode($notify)];
|
|
|
- @file_put_contents("quanju.txt", json_encode($data)."-微信支付成功回调接口\r\n", 8);
|
|
|
$wechatContext = WechatContext::create($data, true);
|
|
|
return true;
|
|
|
}
|