💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# arcone 获取单条文档 ## arcone 获取单条文档 获取指定的文档,支持文章类模型。 ## 参数 参数名称可选值默认值是否必填说明id-$item-指定循环里的变量名,例如id='obj',模板调用如:{$item.title} 变成 {$obj.title}aid--是文章IDmodel--是模型IDmore1--获取副表的数据empty---为空的时候输出提示,支持传入htmlcache-3600秒-缓存时间,默认3600秒## 参数说明 `aid` 文章id,可传入数字、变量,需同`model`模型ID参数一起使用。 ``` <pre class="calibre16">``` <span class="token1">{</span>hkcms<span class="token1">:</span>arcone aid<span class="token">=</span><span class="token4">"22"</span> model<span class="token">=</span><span class="token4">"$model"</span><span class="token1">}</span> 标题:<span class="token1">{</span>$item<span class="token1">.</span>title<span class="token1">}</span> <span class="token1">{</span><span class="token">/</span>hkcms<span class="token1">:</span>arcone<span class="token1">}</span> ``` ``` `more` 获取副表数据 ``` <pre class="calibre20">``` <span class="token1">{</span>hkcms<span class="token1">:</span>arcone aid<span class="token">=</span><span class="token4">"22"</span> model<span class="token">=</span><span class="token4">"1"</span> more<span class="token">=</span><span class="token4">"1"</span><span class="token1">}</span> <span class="token"><</span>p<span class="token">></span><span class="token1">{</span>$item<span class="token1">.</span>title<span class="token1">}</span><span class="token"><</span><span class="token">/</span>p<span class="token">></span> <span class="token"><</span>p<span class="token">></span>副表内容:<span class="token1">{</span>$item<span class="token1">.</span>content<span class="token1">}</span><span class="token"><</span><span class="token">/</span>p<span class="token">></span> <span class="token1">{</span><span class="token">/</span>hkcms<span class="token1">:</span>arcone<span class="token1">}</span> ``` ```