You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
256 lines
8.2 KiB
256 lines
8.2 KiB
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: Administrator
|
|
* Date: 2018/3/27
|
|
* Time: 13:44
|
|
*/
|
|
|
|
namespace app\tuoguan\controller;
|
|
|
|
use app\admin\controller\Base;
|
|
use app\admin\model\Options;
|
|
use think\Db;
|
|
use think\Cache;
|
|
|
|
class Tgsetup extends Base
|
|
{
|
|
|
|
/**
|
|
* 托管缴费通知模板设置显示
|
|
*/
|
|
public function tgfee()
|
|
{
|
|
$sys=Options::get_options('tgfee_options',$this->lang);
|
|
$this->assign('sys',$sys);
|
|
return $this->fetch();
|
|
}
|
|
|
|
/**
|
|
* 托管缴费通知模板设置保存
|
|
*/
|
|
public function tgfeerun()
|
|
{
|
|
if (!request()->isAjax()){
|
|
$this->error('提交方式不正确',url('tuoguan/Tgsetup/tgfee'));
|
|
}else{
|
|
$options=input('post.options/a');
|
|
$options['content_tpl']=htmlspecialchars_decode($options['content_tpl']);
|
|
$rst=Options::set_options($options,'tgfee_options',$this->lang);
|
|
if($rst!==false){
|
|
cache("tgfee_options_".$this->lang,null);
|
|
$this->success('托管缴费通知模板设置保存成功',url('tuoguan/Tgsetup/tgfee'));
|
|
}else{
|
|
$this->error('提交参数不正确',url('tuoguan/Tgsetup/tgfee'));
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 托管初审通知模板设置显示
|
|
*/
|
|
public function tgcheck()
|
|
{
|
|
$sys=Options::get_options('tgcheck_options',$this->lang);
|
|
$this->assign('sys',$sys);
|
|
return $this->fetch();
|
|
}
|
|
|
|
/**
|
|
* 托管初审通知模板设置保存
|
|
*/
|
|
public function tgcheckrun()
|
|
{
|
|
if (!request()->isAjax()){
|
|
$this->error('提交方式不正确',url('tuoguan/Tgsetup/tgcheck'));
|
|
}else{
|
|
$options=input('post.options/a');
|
|
$options['content_tpl']=htmlspecialchars_decode($options['content_tpl']);
|
|
$rst=Options::set_options($options,'tgcheck_options',$this->lang);
|
|
if($rst!==false){
|
|
cache("tgcheck_options_".$this->lang,null);
|
|
$this->success('托管初审通知模板设置保存成功',url('tuoguan/Tgsetup/tgcheck'));
|
|
}else{
|
|
$this->error('提交参数不正确',url('tuoguan/Tgsetup/tgcheck'));
|
|
}
|
|
}
|
|
}
|
|
/**
|
|
* 托管风控审核通知模板设置显示
|
|
*/
|
|
public function tgcheckfk()
|
|
{
|
|
$sys=Options::get_options('tgcheckfk_options',$this->lang);
|
|
$this->assign('sys',$sys);
|
|
return $this->fetch();
|
|
}
|
|
|
|
/**
|
|
* 托管风控审核通知模板设置保存
|
|
*/
|
|
public function tgcheckfkrun()
|
|
{
|
|
if (!request()->isAjax()){
|
|
$this->error('提交方式不正确',url('tuoguan/Tgsetup/tgcheckfk'));
|
|
}else{
|
|
$options=input('post.options/a');
|
|
$options['content_tpl']=htmlspecialchars_decode($options['content_tpl']);
|
|
$rst=Options::set_options($options,'tgcheckfk_options',$this->lang);
|
|
if($rst!==false){
|
|
cache("tgcheckfk_options_".$this->lang,null);
|
|
$this->success('托管风控审核通知模板设置保存成功',url('tuoguan/Tgsetup/tgcheckfk'));
|
|
}else{
|
|
$this->error('提交参数不正确',url('tuoguan/Tgsetup/tgcheckfk'));
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 托管公告通知模板设置显示
|
|
*/
|
|
public function tgsuccessgg()
|
|
{
|
|
$sys=Options::get_options('tgsuccess_options',$this->lang);
|
|
$this->assign('sys',$sys);
|
|
return $this->fetch();
|
|
}
|
|
|
|
/**
|
|
* 托管公告通知模板设置保存
|
|
*/
|
|
public function tgsuccessggrun()
|
|
{
|
|
if (!request()->isAjax()){
|
|
$this->error('提交方式不正确',url('tuoguan/Tgsetup/tgsuccessgg'));
|
|
}else{
|
|
$options=input('post.options/a');
|
|
$options['content_tpl']=htmlspecialchars_decode($options['content_tpl']);
|
|
$rst=Options::set_options($options,'tgsuccess_options',$this->lang);
|
|
if($rst!==false){
|
|
cache("tgsuccess_options_".$this->lang,null);
|
|
$this->success('托管公告模板设置保存成功',url('tuoguan/Tgsetup/tgsuccessgg'));
|
|
}else{
|
|
$this->error('提交参数不正确',url('tuoguan/Tgsetup/tgsuccessgg'));
|
|
}
|
|
}
|
|
}
|
|
/**
|
|
* 托管公告通知模板设置显示
|
|
*/
|
|
public function tgagree()
|
|
{
|
|
$sys=Options::get_options('tgagree_options',$this->lang);
|
|
$this->assign('sys',$sys);
|
|
return $this->fetch();
|
|
}
|
|
|
|
/**
|
|
* 托管公告通知模板设置保存
|
|
*/
|
|
public function tgagreerun()
|
|
{
|
|
if (!request()->isAjax()){
|
|
$this->error('提交方式不正确',url('tuoguan/Tgsetup/tgagree'));
|
|
}else{
|
|
$options=input('post.options/a');
|
|
$options['content_tpl']=htmlspecialchars_decode($options['content_tpl']);
|
|
$rst=Options::set_options($options,'tgagree_options',$this->lang);
|
|
if($rst!==false){
|
|
cache("tgagree_options_".$this->lang,null);
|
|
$this->success('托管公告模板设置保存成功',url('tuoguan/Tgsetup/tgagree'));
|
|
}else{
|
|
$this->error('提交参数不正确',url('tuoguan/Tgsetup/tgagree'));
|
|
}
|
|
}
|
|
}
|
|
/**
|
|
* 托管通知书模板设置显示
|
|
*/
|
|
public function tgnotice()
|
|
{
|
|
$sys=Options::get_options('tgnotice_options',$this->lang);
|
|
$this->assign('sys',$sys);
|
|
return $this->fetch();
|
|
}
|
|
|
|
/**
|
|
* 托管通知书模板设置保存
|
|
*/
|
|
public function tgnoticerun()
|
|
{
|
|
if (!request()->isAjax()){
|
|
$this->error('提交方式不正确',url('tuoguan/Tgsetup/tgnotice'));
|
|
}else{
|
|
$options=input('post.options/a');
|
|
$options['content_tpl']=htmlspecialchars_decode($options['content_tpl']);
|
|
$rst=Options::set_options($options,'tgnotice_options',$this->lang);
|
|
if($rst!==false){
|
|
cache("tgnotice_options_".$this->lang,null);
|
|
$this->success('托管通知书模板设置保存成功',url('tuoguan/Tgsetup/tgnotice'));
|
|
}else{
|
|
$this->error('提交参数不正确',url('tuoguan/Tgsetup/tgnotice'));
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 资产通知书模板(用户通知书)
|
|
*/
|
|
public function zc_notice()
|
|
{
|
|
$sys=Options::get_options('zc_notice',$this->lang);
|
|
$this->assign('sys',$sys);
|
|
return $this->fetch();
|
|
}
|
|
|
|
/**
|
|
* 资产通知书模板保存(用户通知书)
|
|
*/
|
|
public function zc_noticerun()
|
|
{
|
|
if (!request()->isAjax()){
|
|
$this->error('提交方式不正确',url('tuoguan/Tgsetup/zc_notice'));
|
|
}else{
|
|
$options=input('post.options/a');
|
|
$options['content_tpl']=htmlspecialchars_decode($options['content_tpl']);
|
|
$rst=Options::set_options($options,'zc_notice',$this->lang);
|
|
if($rst!==false){
|
|
cache("zc_notice_".$this->lang,null);
|
|
$this->success('模板设置保存成功',url('tuoguan/Tgsetup/zc_notice'));
|
|
}else{
|
|
$this->error('提交参数不正确',url('tuoguan/Tgsetup/zc_notice'));
|
|
}
|
|
}
|
|
}
|
|
/**
|
|
* 资产成功公告模板(官网公告)
|
|
*/
|
|
public function zc_successgg()
|
|
{
|
|
$sys=Options::get_options('zc_successgg',$this->lang);
|
|
$this->assign('sys',$sys);
|
|
return $this->fetch();
|
|
}
|
|
|
|
/**
|
|
* 资产成功公告模板保存(官网公告)
|
|
*/
|
|
public function zc_successggrun()
|
|
{
|
|
if (!request()->isAjax()){
|
|
$this->error('提交方式不正确',url('tuoguan/Tgsetup/zc_successgg'));
|
|
}else{
|
|
$options=input('post.options/a');
|
|
$options['content_tpl']=htmlspecialchars_decode($options['content_tpl']);
|
|
$rst=Options::set_options($options,'zc_successgg',$this->lang);
|
|
if($rst!==false){
|
|
cache("zc_successgg_".$this->lang,null);
|
|
$this->success('模板设置保存成功',url('tuoguan/Tgsetup/zc_successgg'));
|
|
}else{
|
|
$this->error('提交参数不正确',url('tuoguan/Tgsetup/zc_successgg'));
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
}
|