...
|
...
|
@@ -389,6 +389,7 @@ class Pay extends Api |
|
|
$config = config('verify.wx_pay');
|
|
|
$app = Factory::payment($config);
|
|
|
$response = $app->handlePaidNotify(function($message, $fail){
|
|
|
Log::write(date('Y-m-d H:i:s').json_encode($message,JSON_UNESCAPED_UNICODE),'notice');
|
|
|
$data = Db::name('toporder')
|
|
|
->where('num',$message['out_trade_no'])
|
|
|
->find();
|
...
|
...
|
@@ -440,6 +441,7 @@ class Pay extends Api |
|
|
$toporder['status'] = 1;
|
|
|
//支付失败
|
|
|
Db::name('toporder')->where('num',$message['out_trade_no'])->update($toporder);
|
|
|
return false;
|
|
|
}
|
|
|
}else{
|
|
|
return $fail('通信失败,请稍后再通知我');
|
...
|
...
|
|