瀏覽代碼

fixed user settings json decode

tags/0.1.2
Robin Thoni 8 年之前
父節點
當前提交
71f8875e73
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. 5
    1
      src/Auth/Business/LuticateSettingsUsersBusiness.php

+ 5
- 1
src/Auth/Business/LuticateSettingsUsersBusiness.php 查看文件

@@ -26,7 +26,11 @@ class LuticateSettingsUsersBusiness extends LuBusiness {
26 26
 
27 27
     public static function getAllByUser($user_id, $page = 0, $perPage = 2000000000)
28 28
     {
29
-        return LuticateSettingsUsersDataAccess::getAllByUser($user_id, $page, $perPage);
29
+        return LuticateSettingsUsersDataAccess::getAllByUser($user_id, $page, $perPage)->map(function($value)
30
+        {
31
+            $value->setValue(json_decode($value->getValue()));
32
+            return $value;
33
+        });
30 34
     }
31 35
 
32 36
     /**

Loading…
取消
儲存