{php} $myapp = \think\Db::name('app') -> column(true,'app_id'); $param = [ 'type' => 'search', 'q' => input('q'), ]; $res = \ebcms\Server::store('apps', $param); if (!$res['code']) { $error = $res['msg']; } {/php}
{notempty name='error'}

# 发生错误：

{$error}

{else/} {foreach name='res.data' item='vo'}

#### {$vo.title} {if condition="$vo['version_last']"} v{$vo.version_last|default="1.0.0"} {/if}

{$vo.description}

{if condition="isset($myapp[$vo['id']])"}
{elseif condition="$vo['version_last']"}
{/if}
{/foreach} {/notempty}