include("../config/conn.php"); include("../config/function.php"); sesCheck(); $userid=returnuserid($_SESSION["SHOPUSER"]); $orderbh=$_GET[orderbh]; while0("*","yjcode_serverorder where orderbh='".$orderbh."' and selluserid=".$userid);if(!$row=mysql_fetch_array($res)){php_toheader("sellserverorder.php");} if(sqlzhuru($_POST[yjcode])=="tk"){ zwzr(); $zfmm=sha1(sqlzhuru($_POST[t1])); if(panduan("uid,zfmm","yjcode_user where zfmm='".$zfmm."' and uid='".$_SESSION[SHOPUSER]."'")==0){Audit_alert("支付密码有误!","sellservertk.php?orderbh=".$orderbh);} if($row[ddzt]!=7 && $row[ddzt]!=9){Audit_alert("未知错误!","sellserverorderview.php?orderbh=".$orderbh);} $r1=sqlzhuru($_POST["R1"]); if($r1=="yes"){ //同意退款 PointUpdateM($row[userid],$row[money3]); PointIntoM($row[userid],"商家同意退款,服务订单编号".$row[orderbh],$row[money3]); updatetable("yjcode_serverorder","ddzt=8 where selluserid=".$userid." and id=".$row[id]); $str="商家同意退款。说明:".sqlzhuru($_POST[t2]); intotable("yjcode_serverorderlog","orderbh,userid,selluserid,admin,txt,sj","'".$orderbh."',".$row[userid].",".$row[selluserid].",2,'".$str."','".getsj()."'"); }elseif($r1=="no"){ updatetable("yjcode_serverorder","ddzt=9 where selluserid=".$userid." and id=".$row[id]); $str="商家拒绝了退款申请。说明:".sqlzhuru($_POST[t2]); intotable("yjcode_serverorderlog","orderbh,userid,selluserid,admin,txt,sj","'".$orderbh."',".$row[userid].",".$row[selluserid].",2,'".$str."','".getsj()."'"); } php_toheader("sellserverorderview.php?orderbh=".$orderbh); } ?>