Browse Source

增加Exception

master
李可松 4 years ago
parent
commit
48b2e1267c
  1. 8
      app/Http/Controllers/Api/WxpayController.php

8
app/Http/Controllers/Api/WxpayController.php

@ -160,7 +160,7 @@ class WxpayController
// 希望微信重试
$fail('Unknown error 2');
});
} catch (InvalidSignException | Exception $e) {
} catch (InvalidSignException | Exception | \Exception $e) {
$this->log($e->getMessage() . $e->getFile() . $e->getLine());
return 'error';
}
@ -252,7 +252,7 @@ class WxpayController
$fail('Unknown error 2');
});
} catch (Exception $e) {
} catch (Exception | \Exception $e) {
$this->log($e->getMessage() . $e->getFile() . $e->getLine());
return 'error';
}
@ -366,7 +366,7 @@ class WxpayController
// 希望微信重试
$fail('Unknown error 2');
});
} catch (InvalidSignException | Exception $e) {
} catch (InvalidSignException | Exception | \Exception $e) {
LOG::debug('行业产品支付:', [$e->getFile(), $e->getLine(), $e->getMessage()]);
return 'error';
}
@ -416,7 +416,7 @@ class WxpayController
// 希望微信重试
$fail('Unknown error 2');
});
} catch (Exception $e) {
} catch (Exception | \Exception $e) {
LOG::debug('商家入驻支付回调:', [$e->getFile(), $e->getLine(), $e->getMessage()]);
return 'error';
}

Loading…
Cancel
Save