【帝国后台】重点内容记录【支付部分文字修改】 |
|
作者:
来源:原创
|
1)引流
 2)服务就是满足别人的需求,用户搜索的,关注的就是需要努力方向,以及需要添加的文件方向。 帝国后台,样目,相关,搜索关键词。可以分析用户的搜索内容
3)管理支付记录 https://www.kdocs.cn/l/cpHnbLfAWbKA
4)后台各栏目对应模型 办公教程——视频模型——支付后才能学习对应的内容 表格模板——下载模型——设置对应的金额后,支付后才能显示内容,然后另存为后使用 人工服务——新闻模型——2025-2-26前无法设置金额,按下载的字段。 重点内容:下载模型,新闻模型,字段要求有:【fy】【ycnr】(原来错,是因为下载为fy,而新闻为【jf】计费
5)支付内容相关的文字要修改,对应的文件为/e/extend/yundu/ <?php require("../../class/connect.php"); include("../../class/db_sql.php"); include("../../data/dbcache/class.php"); require("../../member/class/user.php"); require("../../data/dbcache/MemberLevel.php"); $link=db_connect(); $empire=new mysqlquery(); $userid=(int)getcvar('mluserid'); $username=RepPostVar(getcvar('mlusername')); $rnd=RepPostVar(getcvar('mlrnd')); $id=(int)$_POST['id']; $classid=(int)$_POST['classid']; $sj=date("Y-m-d H:i:s"); $r=$empire->fetch1("select fy,ycnr from {$dbtbpre}ecms_".$class_r[$classid][tbname]." where id='$id'");
if(!$userid) //没有登录 { $Msg='<div class="content-hide-tips"><i class="fa-lock"></i><span class="rate label label-warning">请支持知识付费阅读!感谢!</span><div class="login-false">阅读当前特定内容需要支付 <span class="label label-warning">'.$r[fy].'</span> 元才能查看。</div><div class="t-c">您还没有登录,请登录后付费!</div><div class="pc-button"><button type="button" class="click-pay btn btn--secondary " onclick="ajaxlogin();" rel="nofollow">立即登录</button></div></div>'; $book = array('Msg'=>$Msg); $json = json_encode($book); echo $json; exit(); }
$user_r=islogin();
$bakr=$empire->fetch1("select * from {$dbtbpre}daixiao360_pay where classid='$classid' and xxid='$id' and userid='$user_r[userid]' and zt=1 limit 1"); //判断是否有支付记录 if($bakr[id]) { $Msg='<div class="content-hide-tips"><i class="fa-unlock-alt"></i><span class="rate label label-warning">感谢您阅读付费知识!</span><div class="content-hide-ok">'.stripslashes($r[ycnr]).'</div></div>'; $book = array('Msg'=>$Msg); $json = json_encode($book); echo $json; exit(); }
else {
$Msg='<div class="content-hide-tips"><i class="fa-lock"></i><span class="rate label label-warning">请支持知识付费阅读!感谢!</span><div class="login-false">阅读当前特定内容需要支付 <span class="label label-warning">'.$r[fy].'</span> 元才能查看。</div><div class="pc-button"><button type="button" class="click-pay btn btn--danger" onclick="buywz('.$classid.','.$id.','.$r[jf].')" rel="nofollow">确定购买</button></div></div>'; $book = array('Msg'=>$Msg); $json = json_encode($book); echo $json; exit(); } ?>
|
|
|
|