Browse Source

修复错误

jason 10 months ago
parent
commit
6ca582c625
1 changed files with 4 additions and 4 deletions
  1. 4 4
      application/api/controller/User.php

+ 4 - 4
application/api/controller/User.php

@@ -263,7 +263,7 @@ class User extends Api
         $wallet = (new OfflineWithdrawRecordModel())
             ->where('user_id', $user['id'])
             ->where('symbol', 'smh')
-            ->where('status', OfflineWithdrawRecordModel::StatusSuccessHand)
+            ->where('status', OfflineWithdrawRecordModel::StatusSuccess)
             ->find();
         if (!empty($wallet)) {
             $resp['address'] = $wallet['to_address'];
@@ -330,7 +330,7 @@ class User extends Api
         $wallet = (new OfflineWithdrawRecordModel())
             ->where('user_id', $user['id'])
             ->where('symbol', 'smh')
-            ->where('status', OfflineWithdrawRecordModel::StatusSuccessHand)
+            ->where('status', OfflineWithdrawRecordModel::StatusSuccess)
             ->find();
         if (!empty($wallet)) {
             $address = $wallet['to_address'];
@@ -454,7 +454,7 @@ class User extends Api
         $wallet = (new OfflineWithdrawRecordModel())
             ->where('user_id', $user['id'])
             ->where('symbol', 'aleo')
-            ->where('status', OfflineWithdrawRecordModel::StatusSuccessHand)
+            ->where('status', OfflineWithdrawRecordModel::StatusSuccess)
             ->find();
         if (!empty($wallet)) {
             $resp['address'] = $wallet['to_address'];
@@ -520,7 +520,7 @@ class User extends Api
         $wallet = (new OfflineWithdrawRecordModel())
             ->where('user_id', $user['id'])
             ->where('symbol', 'aleo')
-            ->where('status', OfflineWithdrawRecordModel::StatusSuccessHand)
+            ->where('status', OfflineWithdrawRecordModel::StatusSuccess)
             ->find();
         if (!empty($wallet)) {
             $address = $wallet['to_address'];