作者 lyh

Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6 into develop

@@ -585,6 +585,9 @@ class ProjectUpdate extends Command @@ -585,6 +585,9 @@ class ProjectUpdate extends Command
585 $category_id = $category_custom['id']; 585 $category_id = $category_custom['id'];
586 } 586 }
587 } 587 }
  588 + if($category_id){
  589 + $category_id = ',' . $category_id . ',';
  590 + }
588 //图片 591 //图片
589 if (is_array($item['images'] ?? '')) { 592 if (is_array($item['images'] ?? '')) {
590 $image = $item['images'][0] ?? ''; 593 $image = $item['images'][0] ?? '';
@@ -625,8 +628,8 @@ class ProjectUpdate extends Command @@ -625,8 +628,8 @@ class ProjectUpdate extends Command
625 } 628 }
626 629
627 //扩展字段 630 //扩展字段
628 - if ($item['extend'][0] ?? []) {  
629 - foreach ($item['extend'][0] as $ke => $ve) { 631 + if ($item['extend'] ?? []) {
  632 + foreach ($item['extend'] as $ke => $ve) {
630 $extend = $extend_model->read(['title' => $ke]); 633 $extend = $extend_model->read(['title' => $ke]);
631 if ($extend) { 634 if ($extend) {
632 $extend_info = $extend_info_model->read(['key' => $extend['key'], 'content_id' => $id]); 635 $extend_info = $extend_info_model->read(['key' => $extend['key'], 'content_id' => $id]);
@@ -637,7 +640,7 @@ class ProjectUpdate extends Command @@ -637,7 +640,7 @@ class ProjectUpdate extends Command
637 foreach ($ve as $ve_img) { 640 foreach ($ve as $ve_img) {
638 $gallery[] = ['title' => '', 'description' => '', 'url' => $this->source_download($ve_img, $project_id, $domain_arr['host'], $web_url_domain, $home_url)]; 641 $gallery[] = ['title' => '', 'description' => '', 'url' => $this->source_download($ve_img, $project_id, $domain_arr['host'], $web_url_domain, $home_url)];
639 } 642 }
640 - }else{ 643 + } else {
641 $gallery[] = ['title' => '', 'description' => '', 'url' => $this->source_download($ve, $project_id, $domain_arr['host'], $web_url_domain, $home_url)]; 644 $gallery[] = ['title' => '', 'description' => '', 'url' => $this->source_download($ve, $project_id, $domain_arr['host'], $web_url_domain, $home_url)];
642 } 645 }
643 $value = Arr::a2s($gallery); 646 $value = Arr::a2s($gallery);
@@ -27,7 +27,6 @@ class AyrReleaseRequest extends FormRequest @@ -27,7 +27,6 @@ class AyrReleaseRequest extends FormRequest
27 'content'=>'required', 27 'content'=>'required',
28 'share_id'=>'required', 28 'share_id'=>'required',
29 'platforms'=>'required|array', 29 'platforms'=>'required|array',
30 - 'schedule_date'=>'required'  
31 ]; 30 ];
32 } 31 }
33 32
@@ -33,7 +33,7 @@ return [ @@ -33,7 +33,7 @@ return [
33 //默认视频 33 //默认视频
34 'default_file' =>[ 34 'default_file' =>[
35 'size' => [ 35 'size' => [
36 - 'max' => 1024*1024*50, // 50M 36 + 'max' => 1024*1024*500, // 50M
37 ], 37 ],
38 'path_b' => '/upload/p', 38 'path_b' => '/upload/p',
39 'path_a' => '/upload/m', 39 'path_a' => '/upload/m',