Преглед изворни кода

feat: NG-27: Adjusting Service Award Settlement

kevin пре 1 година
родитељ
комит
7b0845e208
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      common/helpers/bonus/CalcCache.php

+ 1 - 3
common/helpers/bonus/CalcCache.php

@@ -602,12 +602,10 @@ class CalcCache {
 
             $data = Json::encode($userInfo);
             Yii::$app->redis->hset($key, $userId, $data);
-
             unset($key, $userId, $periodNum);
-
             return $userInfo;
         } else {
-            return [];
+            return Json::decode($data);
         }
     }