Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
3 个修改的文件
包含
5 行增加
和
10 行删除
| @@ -69,7 +69,6 @@ class AyrReleaseController extends BaseController | @@ -69,7 +69,6 @@ class AyrReleaseController extends BaseController | ||
| 69 | } | 69 | } |
| 70 | //参数处理 | 70 | //参数处理 |
| 71 | $this->param['mediaUrls'] = $ayrReleaseLogic->image_file_param($data); | 71 | $this->param['mediaUrls'] = $ayrReleaseLogic->image_file_param($data); |
| 72 | - //时间处理 | ||
| 73 | //统一生成发布 | 72 | //统一生成发布 |
| 74 | $param = [ | 73 | $param = [ |
| 75 | 'post'=>$this->param['content'], | 74 | 'post'=>$this->param['content'], |
| @@ -96,7 +96,7 @@ class ProductController extends BaseController | @@ -96,7 +96,7 @@ class ProductController extends BaseController | ||
| 96 | } | 96 | } |
| 97 | if(!empty($v['video'])){ | 97 | if(!empty($v['video'])){ |
| 98 | $v['video']['url'] = getFileUrl($v['video']['url'],$this->user['storage_type'] ?? 0,$this->user['project_location']); | 98 | $v['video']['url'] = getFileUrl($v['video']['url'],$this->user['storage_type'] ?? 0,$this->user['project_location']); |
| 99 | - $v['video']['video_image'] = getImageUrl($v['video']['video_image'],$this->user['storage_type'] ?? 0,$this->user['project_location']); | 99 | + $v['video']['video_image'] = getImageUrl($v['video']['video_image'] ?? '',$this->user['storage_type'] ?? 0,$this->user['project_location']); |
| 100 | } | 100 | } |
| 101 | if(!empty($v['files']) && !empty($v['files']['url'])){ | 101 | if(!empty($v['files']) && !empty($v['files']['url'])){ |
| 102 | $v['files']['url'] = getFileUrl($v['files']['url'],$this->user['storage_type'] ?? 0,$this->user['project_location']); | 102 | $v['files']['url'] = getFileUrl($v['files']['url'],$this->user['storage_type'] ?? 0,$this->user['project_location']); |
| @@ -61,18 +61,14 @@ class AyrReleaseLogic extends BaseLogic | @@ -61,18 +61,14 @@ class AyrReleaseLogic extends BaseLogic | ||
| 61 | $arr = []; | 61 | $arr = []; |
| 62 | foreach ($data as $k => $v){ | 62 | foreach ($data as $k => $v){ |
| 63 | if($k == 'images'){ | 63 | if($k == 'images'){ |
| 64 | - $images = $v; | ||
| 65 | - $imageModel = new Image(); | ||
| 66 | - $list = $imageModel->list(['path'=>['in',$images]],'id'); | ||
| 67 | - foreach ($list as $v1){ | ||
| 68 | - $arr[] = getImageUrl($v1['path'],$this->user['storage_type'],$this->user['project_location']); | 64 | + foreach ($v as $v1){ |
| 65 | + $arr[] = $v1; | ||
| 69 | } | 66 | } |
| 70 | }else{ | 67 | }else{ |
| 71 | - $fileModel = new File(); | ||
| 72 | - $info = $fileModel->read(['path'=>$v]); | ||
| 73 | - $arr[] = getFileUrl($info['path'],$this->user['storage_type'],$this->user['project_location']); | 68 | + $arr[] = $v; |
| 74 | } | 69 | } |
| 75 | } | 70 | } |
| 71 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($arr, true) . PHP_EOL, FILE_APPEND); | ||
| 76 | return $this->success($arr); | 72 | return $this->success($arr); |
| 77 | } | 73 | } |
| 78 | 74 |
-
请 注册 或 登录 后发表评论