{__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'); $gourl = preg_replace('/]*)>([\s\S]+)<\/script>/i', '', urldecode($gourl)); $addurl = request()->baseFile()."?m=admin&c=Archives&a=add&typeid=".$data['tid']."&lang=".$lang; $env_list_url = cookie('ENV_LIST_URL'); $env_list_url = preg_replace('/]*)>([\s\S]+)<\/script>/i', '', urldecode($env_list_url)); $listurl = $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])->count();//是否安装百度小程序 $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}