Jelajahi Sumber

提交人工充值、飞机用户注册逻辑

lip 13 jam lalu
induk
melakukan
f605d8756e
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      app/Http/Controllers/api/Wallet.php

+ 4 - 1
app/Http/Controllers/api/Wallet.php

@@ -47,7 +47,7 @@ class Wallet extends BaseController
     }
 
     /**
-     * 创建代收订单
+     * 创建代收订单(自动扫码充值)
      */
     public function createPay()
     {   
@@ -56,6 +56,9 @@ class Wallet extends BaseController
                 'amount' => ['required', 'numeric', 'min:0.01'],
                 'payment_type' => ['required', 'string'],
             ]);
+            if ($params['payment_type'] == 'rgcz') {
+                return $this->error('参数有误');
+            }
             $member_id = request()->user->member_id;
             $res = PaymentOrderService::createPay($member_id, $params['amount'], $params['payment_type']);
             if ($res['code'] == 0) {