where('weid', weid())->cache(180)->order('sort asc')->select()->toArray(); if (!empty($textReplace)) { foreach ($textReplace as $vo) { if ($isarray) { $textarry = str_replace(str_replace('/','\/',$vo['sourcetext']), str_replace('/','\/',$vo['replacetext']), $textarry); } else { $textarry = str_replace($vo['sourcetext'], $vo['replacetext'], $textarry); } } } if ($isarray) { $textarry = json_decode($textarry, true); } } return $textarry; } }