xiaogang il y a 4 ans
Parent
commit
49cdad1f75
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      app/Services/UserService.php

+ 2 - 1
app/Services/UserService.php

xqd xqd
@@ -52,7 +52,7 @@ class UserService
      * 购买vip
      */
     public function buy_vip($param){
-        throw new Exception("选择的会员id=".$param['id']);
+
         if(empty($param['id'])){
             throw new Exception("参数错误");
         }
@@ -77,6 +77,7 @@ class UserService
             'total_fee' => $ins['price'],
             'payment' => $ins['payment'],
         ];
+        throw new Exception(json_encode($pay_param));
         return PayService::pay($pay_param);
     }