|
@@ -515,21 +515,23 @@ class TemplateController extends Controller
|
515
|
515
|
{
|
516
|
516
|
$id = (int)$request->input('id');
|
517
|
517
|
$this->validate($request, [
|
518
|
|
- 't_id' => 'required',
|
|
518
|
+ //'t_id' => 'required',
|
519
|
519
|
'back_img' => 'required',
|
520
|
520
|
], [
|
521
|
|
- 't_id.required' => '模板不能为空',
|
|
521
|
+ //'t_id.required' => '模板不能为空',
|
522
|
522
|
'back_img.required' => '背景图不能为空',
|
523
|
523
|
|
524
|
524
|
]);
|
525
|
525
|
|
526
|
526
|
$template = TemplatesSource::findOrFail($id);
|
|
527
|
+ /*
|
527
|
528
|
$t_id = (int)$request->input('t_id');
|
528
|
529
|
if( $template->t_id != $t_id ){
|
529
|
530
|
//模板更改,生成新连接
|
530
|
531
|
$template->t_id = $t_id;
|
531
|
532
|
$template->url = $this->createSourceUrl($t_id, $template->id);
|
532
|
533
|
}
|
|
534
|
+ */
|
533
|
535
|
$template->note = trim($request->input('note'));
|
534
|
536
|
$template->back_img = trim($request->input('back_img'));
|
535
|
537
|
//图片上传 阿里云oss
|