root hace 3 años
padre
commit
358f453521
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      common/models/DecLevelLog.php

+ 1 - 2
common/models/DecLevelLog.php

@@ -88,7 +88,7 @@ class DecLevelLog extends \common\components\ActiveRecord
             $model->TO_ID = $data['levelId'];
             $model->PERIOD_NUM = 0;
             $model->CALC_MONTH = 0;
-            $model->REMARK = $data['remark'];
+            $model->REMARK = isset($data['remark']) ? $data['remark'] : '';
             $model->STATUS = 1;
             $model->ADMIN_ID = $data['actionId'];
             $model->CREATED_AT = Date::nowTime();
@@ -97,7 +97,6 @@ class DecLevelLog extends \common\components\ActiveRecord
                 throw new Exception(Form::formatErrorsForApi($model->getErrors()));
             }
             //修改会员级别,如果是上期,则一起变化,如果不是,则只改变实时级别
-            
             $nowTime = Date::nowTime();
             User::updateAll(
                 [