ryan 1 mesiac pred
rodič
commit
f6d8cbb1fa

+ 0 - 1
backendApi/config/urlManagerRules.php

@@ -502,7 +502,6 @@ return [
             'GET transfer-list-export' => 'transfer-list-export',
             'GET history-bonus-export' => 'history-bonus-export',
             'GET recharge' => 'recharge',
-            'GET recharge-type' => 'recharge-type',
             'GET,POST recharge-status' => 'recharge-status',
             'GET recharge-export' => 'recharge-export',
             'POST mult-point' => 'mult-point',

+ 0 - 35
backendApi/modules/v1/controllers/FinanceController.php

@@ -1184,41 +1184,6 @@ class FinanceController extends BaseController {
         return static::notice($data);
     }
 
-    /**
-     * 充值列表
-     * @return mixed
-     * @throws \yii\base\Exception
-     * @throws \yii\web\HttpException
-     */
-    public function actionRechargeType()
-    {
-        $filter = $this->filterCondition([
-            'SN' => 'R.SN',
-            'USER_NAME' => 'UI.USER_NAME',
-            'AMOUNT' => 'R.AMOUNT',
-            'AUDIT_STATUS' => 'R.AUDIT_STATUS',
-            'BANK_NO' => 'R.BANK_NO',
-            'CREATED_AT' => 'R.CREATED_AT',
-        ]);
-        $condition = $filter['condition'];
-        $params = $filter['params'];
-
-        $isSuper = AdminRole::isSuperAdmin(\Yii::$app->getUser()->getUserInfo()['roleId']);
-        if (!$isSuper) {
-            $adminId = Yii::$app->getUser()->getUserInfo()['id'];
-            $adminCountry = AdminCountry::getCountry($adminId);
-            $quotedAdminCountry = array_map(function($item) {
-                return "'" . addslashes($item) . "'";
-            }, $adminCountry);
-
-            $condition .= " AND U.COUNTRY_ID IN (" . implode(',', $quotedAdminCountry) . ")";
-        }
-
-        $listObj = new RechargeList();
-        $data = $listObj->getList(['condition' => $condition, 'params' => $params]);
-        return static::notice($data);
-    }
-
     /**
      * 充值导出
      * @return mixed

+ 1 - 1
frontendApi/modules/v1/controllers/FinanceController.php

@@ -561,7 +561,7 @@ class FinanceController extends BaseController {
         $countryId = User::getEnCodeInfo(\Yii::$app->user->id)['COUNTRY_ID'];
         // 所有开户行
         $allOpenBank = OpenBank::findAllAsArray('STATUS=:STATUS AND COUNTRY_ID=:COUNTRY_ID', [':STATUS' => 1, ':COUNTRY_ID' => $countryId]);
-        return static::notice(['allOpenBank' => $allOpenBank]);
+        return static::notice(['allOpenBank' => $allOpenBank,'type'=>['Cash', 'Credit Card', 'Direct Banking']]);
     }
 
     /**