Просмотр исходного кода

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

kevinElken 9 месяцев назад
Родитель
Сommit
643cf11f3f

+ 1 - 1
backendApi/modules/v1/controllers/BonusController.php

@@ -2831,7 +2831,7 @@ class BonusController extends BaseController {
      *
      */
     public function actionAutoWithdraw() {
-        Cache::setWithdrawLock(0);
+        Cache::setWithdrawLock(0); // todo
         $withdrawLock = Cache::getWithdrawLock();
         if ($withdrawLock!=0){
             return static::notice(Form::formatErrorsForApi('已有进程在生成'), 400);

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

@@ -9,6 +9,7 @@ use common\components\Model;
 use common\helpers\Cache;
 use common\helpers\Date;
 use common\helpers\Form;
+use common\helpers\LoggerTool;
 use common\helpers\Tool;
 use common\helpers\user\Balance;
 use common\helpers\user\Info;
@@ -766,6 +767,8 @@ class WithdrawForm extends Model {
             ->asArray()
             ->all();
 
+        LoggerTool::debug(['$allData', $allData]);
+
         if($allData){
             foreach ($allData as $data){
                 $db = \Yii::$app->db;