param(); $this->validate($params, ['poster_location|海报位置' => 'require', 'locale' => 'require']); $con = Tool::getOptionalQuery( ['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', ]) ->where($con) ->alias('a') ->leftjoin('i18n_lang_type c', 'a.i18n_lang_type_guid = c.i18n_lang_type_guid') //i18n ->find(); return msg(0, '获取海报详情成功!', ['data' => $find]); } }