浏览代码

购买下单

lyh 2 年之前
父节点
当前提交
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)
     public function buyxd($userId, $params)
     {
     {
-        $payType     = 10;
-        if ($money <= 0) {
-            $this->error = 2031;
-            return false;
-        }
-
         $cacheKey = "caches:acceptor:buyxd:lock_{$userId}";
         $cacheKey = "caches:acceptor:buyxd:lock_{$userId}";
         if (RedisService::get($cacheKey)) {
         if (RedisService::get($cacheKey)) {
             $this->error = 1034;
             $this->error = 1034;
@@ -1018,7 +1012,7 @@ class AcceptorService extends BaseService
             'total'              => $money,
             'total'              => $money,
             'usdt_rate'          => $usdt_rate,
             'usdt_rate'          => $usdt_rate,
             'currency'           => $params['currency'],
             'currency'           => $params['currency'],
-            'pay_type'           => $payType,
+            'pay_type'           => $params['pay_type'],
             'pay_money'          => $params['money'],
             'pay_money'          => $params['money'],
             'pay_status'         => 2,
             'pay_status'         => 2,
             'pay_time'           => now(),
             'pay_time'           => now(),