{__NOLAYOUT__}
{switch name="$code"} {case value="1"} {php} $post = $_POST; isset($post['typeid']) && $post['tid'] = $post['typeid']; if (!empty($data) && is_array($data)) { $post = array_merge($post, $data); } $data = $post; $row = \think\DB::name('archives') ->field("b.*, a.*, a.aid as aid, c.ifsystem") ->alias('a') ->join('__ARCTYPE__ b', 'a.typeid = b.id', 'LEFT') ->join('__CHANNELTYPE__ c', 'c.id = a.channel', 'LEFT') ->where('a.aid', 'eq', $data['aid']) ->find(); $arcurl = get_arcurl($row); $arcurl_home = get_arcurl($row, false); $channel = $row['channel']; $arcrank = $row['arcrank']; $seo_pseudo = tpCache('seo.seo_pseudo'); $lang = input('param.lang/s', 'cn'); $gourl = cookie('ENV_GOBACK_URL'); $addurl = request()->baseFile()."?m=admin&c=Archives&a=add&typeid=".$data['tid']."&lang=".$lang; $listurl = cookie('ENV_LIST_URL')."&typeid=".$data['tid']; if (empty($row['ifsystem'])) { $listurl .= "&channel=".$data['channel']; $addurl .= "&channel=".$data['channel']; } $env_is_uphtml = cookie('ENV_IS_UPHTML'); $action_name = $push_zzbaidu_type = request()->action(); $ctl_name = request()->controller(); if ('add' == $action_name) { $msg = '发布'; $msg1 = '继续发布'; } else { $msg = '编辑'; $msg1 = '发布'; } if (0 > $row['click'] && -1 < $arcrank) { $push_zzbaidu_type = 'add'; \think\DB::name('archives') ->where('aid', 'eq', $data['aid']) ->update(['click'=>mt_rand(500, 1000), 'update_time'=>getTime()]); } {/php}
成功{$msg}文档请选择你的后续操作：

- {$msg1}文档{$msg1}文档
- 查看文档查看文档
- 更改文档更改文档
- 已发布文档管理已发布文档管理
{notempty name='$gourl'}
- [记忆的列表页][记忆的列表页]
{/notempty}

{if condition="2 == $seo_pseudo && 1 != $env_is_uphtml"}
正在生成当前文档……请勿刷新！
{else /} {/if}
{php} if (2 == $seo_pseudo && 1 != $env_is_uphtml) { cookie('ENV_IS_UPHTML', 1); {/php}
{php} } else if (in_array($seo_pseudo, [1,3])) { {/php}
{php} } {/php} {/case} {case value="0"}

#

{$msg|strip_tags=###}

页面自动 跳转 等待时间：{$wait}

{/case} {/switch}