|
|
@@ -391,10 +391,12 @@ class UsdtWalletService extends BaseService
|
|
|
];
|
|
|
|
|
|
if ($this->memberModel->where(['id' => $userId])->increment('usdt_num', $amount)) {
|
|
|
+ $this->memberModel->where(['id' => $userId])->increment('trc_usdt', $amount);
|
|
|
+
|
|
|
$logs[] = $log;
|
|
|
$this->coinModel->insert($log);
|
|
|
|
|
|
- $this->memberModel->where(['id' => $userId])->increment('trc_usdt', $amount);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -454,10 +456,12 @@ class UsdtWalletService extends BaseService
|
|
|
];
|
|
|
|
|
|
if ($this->memberModel->where(['id' => $userId])->decrement('usdt_num', $amount)) {
|
|
|
+ $this->memberModel->where(['id' => $userId])->decrement('trc_usdt', $amount);
|
|
|
+
|
|
|
$logs[] = $log;
|
|
|
$this->coinModel->insert($log);
|
|
|
|
|
|
- $this->memberModel->where(['id' => $userId])->decrement('trc_usdt', $amount);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|