lyh 2 лет назад
Родитель
Сommit
f7ab3920ea
1 измененных файлов с 1 добавлено и 7 удалено
  1. 1 7
      app/Services/Api/AcceptorService.php

+ 1 - 7
app/Services/Api/AcceptorService.php

@@ -943,12 +943,6 @@ class AcceptorService extends BaseService
      */
     public function buyxd($userId, $params)
     {
-        $payType     = 10;
-        if ($money <= 0) {
-            $this->error = 2031;
-            return false;
-        }
-
         $cacheKey = "caches:acceptor:buyxd:lock_{$userId}";
         if (RedisService::get($cacheKey)) {
             $this->error = 1034;
@@ -1018,7 +1012,7 @@ class AcceptorService extends BaseService
             'total'              => $money,
             'usdt_rate'          => $usdt_rate,
             'currency'           => $params['currency'],
-            'pay_type'           => $payType,
+            'pay_type'           => $params['pay_type'],
             'pay_money'          => $params['money'],
             'pay_status'         => 2,
             'pay_time'           => now(),