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