Browse Source

支付加平台参数

gorden 8 months ago
parent
commit
93f568b52f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/api/controller/pay/WxpayController.php

+ 2 - 1
app/api/controller/pay/WxpayController.php

@@ -58,11 +58,12 @@ class WxpayController
 
 
             Db::commit();
             Db::commit();
             return json_success('', json_decode($wxpay, true));
             return json_success('', json_decode($wxpay, true));
-        } catch (BusinessException $e) {
+        } catch (PayException $e) {
             Db::rollBack();
             Db::rollBack();
             return json_fail($e->getMessage());
             return json_fail($e->getMessage());
         } catch (\Exception $e) {
         } catch (\Exception $e) {
             Db::rollBack();
             Db::rollBack();
+            dump($e->getMessage());
             return json_fail('下单失败');
             return json_fail('下单失败');
         }
         }