fixed 修改海报字段不出来问题

This commit is contained in:
Abbh1 2024-05-05 16:58:22 +08:00
parent f566b72138
commit 2b4e19790b

View File

@ -24,18 +24,15 @@ class Poster extends BaseController
{
$params = $request->param();
$this->validate($params, ['poster_location|海报位置' => 'require','locale' => 'require']);
$this->validate($params, ['poster_location|海报位置' => 'require', 'locale' => 'require']);
$con = Tool::getOptionalQuery(
['c.i18n_lang_type_code', '=' , 'locale'], //i18n,
['poster_location', '=',$params['poster_location']]
['c.i18n_lang_type_code', '=', 'locale'], //i18n,
['a.poster_location', '=', 'poster_location']
);
$find = ModelPoster::field([
'a.poster_img' => 'imgSrc',
'a.poster_title' => 'title',
'a.poster_describe' => 'text',
'c.i18n_lang_type_code',
'a.i18n_lang_type_guid',
])
->where($con)
->alias('a')