...
|
...
|
@@ -29,7 +29,7 @@ class WxPayNotify extends WxPayNotifyReply |
|
|
|
|
|
$msg = "OK";
|
|
|
//当返回false的时候,表示notify中调用NotifyCallBack回调失败获取签名校验失败,此时直接回复失败
|
|
|
$result = WxpayApi::notify(array($this, 'NotifyCallBack'), $msg);
|
|
|
$result = WxPayApi::notify(array($this, 'NotifyCallBack'), $msg);
|
|
|
$log->LogInfo(var_export($result, true));
|
|
|
if ($result == false) {
|
|
|
$log->LogInfo('===微信扫码支付Handle失败===');
|
...
|
...
|
@@ -70,13 +70,20 @@ class WxPayNotify extends WxPayNotifyReply |
|
|
*/
|
|
|
final public function NotifyCallBack($data)
|
|
|
{
|
|
|
// 初始化日志
|
|
|
$log = new PhpLog(self::ORDER_STATUS_LOG, 'PRC', self::LOG_LEVEL);
|
|
|
$log->LogInfo('begin WxPayNotify->NotifyCallBack');
|
|
|
$log->LogInfo(var_export($data, true));
|
|
|
|
|
|
$msg = "OK";
|
|
|
$result = $this->NotifyProcess($data, $msg);
|
|
|
|
|
|
if ($result == true) {
|
|
|
$log->LogInfo('===微信支付NotifyCallBack成功===');
|
|
|
$this->SetReturn_code("SUCCESS");
|
|
|
$this->SetReturn_msg("OK");
|
|
|
} else {
|
|
|
$log->LogInfo('===微信支付NotifyCallBack失败===');
|
|
|
$this->SetReturn_code("FAIL");
|
|
|
$this->SetReturn_msg($msg);
|
|
|
}
|
...
|
...
|
|