xiaogang 4 年之前
父节点
当前提交
4d3b904552
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/Services/UserService.php

+ 2 - 1
app/Services/UserService.php

xqd
@@ -53,7 +53,8 @@ class UserService
      */
     public function buy_vip($param){
         if($param['payment']!=1 || $param['payment']!=2){
-            throw new Exception("支付选择参数错误");
+            //throw new Exception("支付选择参数错误");
+            $param['payment']=1;
         }
         if(empty($param['id'])){
             throw new Exception("参数错误");