Răsfoiți Sursa

修复错误

jason 11 luni în urmă
părinte
comite
6ca582c625
1 a modificat fișierele cu 4 adăugiri și 4 ștergeri
  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'];