Dreaming Judging Resource免费下载直接下载地址,否则,dreaming怎么读

来源:未知 浏览 119次 时间 2021-06-20 05:21

当编织梦想来免费判断资源时直接输出下载地址否则直接输出购买网站优化否则直接输出购买你需要在模板中做一个小判断那么这个时候必须是函数runphp='yes'让我们来看看代码:搜索后两种方法基本上可以实现    1首先把值调用需要在public变量中调用其他字段然后直接调用public变量的值看代码   {dede: php} $ GLOBALS ['title']=$ arc-&gt; Fields ['title'] {/dede: php} {dede: php} $ GLOBALS ['baidupan']=$ arc-&gt; Fields ['baidupan'] {/dede: php} {dede: field.price runphp=&quot; yes&quot;} 如果(@我=QUOT; 0&QUOT) @me=&quot;下载:&quot;$ GLOBALS ['baidupan']; 其他 @me=&quot; Products(&。$ GLOBALS ['title']。&quot;)购买链接为:XXX&quot ; {/dede: field.xxxx}   2直接使用name='array'将其他字段的值赋给数组然后使用查看代码   {dede: field name='array'runphp='yes'} 如果(@me ['price']=='0') @me=' &lt; li&gt;&lt; a class=&quot; demo&quot; HREF=&QUOT; '[baidupan ']' &QUOT @我。'; target=&quot; _blank&quot;&gt;下载:'。@ me ['baidupwd']。 “&LT;/A&GT;&LT; /锂&GT; “; 其他 @me=' &lt; div dataP=&quot;'。@ me ['title']。'&quot; dataR=&quot;'。@ me ['price']。'&quot;&gt;&lt; img src=&quot;/uploads/allimg /0.gif"></div>'; {/dede: field}

标签: 资源下载直接输出地址织梦费时判断