作者 lyh

gx

... ... @@ -420,6 +420,9 @@ if (!function_exists('getImageUrl')) {
* @time :2023/7/20 16:46
*/
function getImageUrl($path,$location = 1){
if(empty($path)){
return '';
}
if(is_array($path)){
foreach ($path as $v){
$url[] = getImageUrl($v);
... ... @@ -445,6 +448,9 @@ if (!function_exists('getFileUrl')) {
* @time :2023/7/20 16:46
*/
function getFileUrl($path,$location = 1){
if(empty($path)){
return '';
}
if(is_array($path)){
foreach ($path as $v){
$url[] = getFileUrl($v);
... ...
... ... @@ -29,7 +29,6 @@ class ProcessRecords extends Base
public function getRecordAttribute($value){
$value = Arr::s2a($value);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($value, true) . PHP_EOL, FILE_APPEND);
foreach ($value as &$v){
if(isset($v['image']) && !empty($v['image'])) {
foreach ($v['image'] as $kImage => $vImage) {
... ...