|
|
@@ -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(),
|