|
@@ -72,9 +72,7 @@ class PosterController extends Controller
|
|
return $this->showMessage('分享海报或者二维码不能为空!');
|
|
return $this->showMessage('分享海报或者二维码不能为空!');
|
|
}
|
|
}
|
|
$data['qrcode'] = $this->formatImgUrl($data['qrcode']);*/
|
|
$data['qrcode'] = $this->formatImgUrl($data['qrcode']);*/
|
|
- if (!empty($data['words'])) {
|
|
|
|
- $data['words'] = json_encode($data['words']);
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
|
|
$ok = $this->repository->create($data);
|
|
$ok = $this->repository->create($data);
|
|
|
|
|
|
@@ -123,9 +121,7 @@ class PosterController extends Controller
|
|
return $this->showMessage('分享海报或者二维码不能为空!');
|
|
return $this->showMessage('分享海报或者二维码不能为空!');
|
|
}
|
|
}
|
|
$data['qrcode'] = $this->formatImgUrl($data['qrcode']);*/
|
|
$data['qrcode'] = $this->formatImgUrl($data['qrcode']);*/
|
|
- if (!empty($data['words'])) {
|
|
|
|
- $data['words'] = json_encode($data['words']);
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
$id = request('id');
|
|
$id = request('id');
|
|
|
|
|
|
$ok = $this->repository->update($id, $data);
|
|
$ok = $this->repository->update($id, $data);
|