ソースを参照

feat: EK-879: 【AE】管理员增加“Country”属性,根据所选国家限制登录后所显示的奖金、余额等数据(二期).

kevinElken 9 ヶ月 前
コミット
3c8e78380b

+ 3 - 1
common/models/forms/WithdrawForm.php

@@ -742,10 +742,12 @@ class WithdrawForm extends Model {
     public function batchWithdraw($limit, $start, $params){
         $config = Cache::getSystemConfig();
         $minAmount = $config['manualWithdrawMinAmount']['VALUE'];
-        LoggerTool::debug(['batchWithdraw', $params['handleUserId'], $minAmount]);
+
         $condition = '';
         $adminRoleId = Admin::getRoleIdById($params['handleUserId']);
+        LoggerTool::debug(['$adminRoleId', $adminRoleId]);
         $isSuper = AdminRole::isSuperAdmin($adminRoleId);
+        LoggerTool::debug(['$isSuper', $isSuper]);
         if (!$isSuper) {
             $adminCountry = AdminCountry::getCountry($params['handleUserId']);
             $quotedAdminCountry = array_map(function($item) {

+ 1 - 1
console/controllers/BonusController.php

@@ -535,7 +535,7 @@ class BonusController extends BaseController
      */
     public function actionAutoWithdraw($taskKey){
         $params = Cache::getAsyncParams($taskKey);
-        LoggerTool::debug(['$params', $params]);
+
         Cache::setWithdrawLock(1);
         $formModel = new WithdrawForm();
         $formModel->batchWithdraw(5,0, $params);