{__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()]); } $zzbaidutoken = config('tpcache.sitemap_zzbaidutoken');//不为空则实时推送Url的token $bdminipro = \think\Db::name('weapp')->where(['code'=>'BdDiyminipro','status'=>1])->find();//是否安装百度小程序 $seo_uphtml_after = cookie('ENV_UPHTML_AFTER'); if (!empty($seo_uphtml_after)) { $seo_uphtml_after = json_decode($seo_uphtml_after, true); $alltypeid = getalltype($data['tid'],'id'); } {/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"}

#

{if condition="stristr($msg, '__html__')"} {$msg|str_replace='__html__','',###} {else /} {$msg|strip_tags=###} {/if}

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

{/case} {/switch}