$remark1 = trim($_POST['remark1']); //备注字段1 $remark2 = trim($_POST['remark2']); //备注字段2 $v_md5str = trim($_POST['v_md5str']); //拼凑后的MD5校验值 /** * 重新计算md5的值 */ $md5string = strtoupper(md5($v_oid . $v_pstatus . $v_amount . $v_moneytype . $key)); /** * 判断返回信息,如果支付成功,并且支付结果可信,则做进一步的处理 */ if ($v_md5str == $md5string) { if ($v_pstatus == "20") { if (Sitecount('id', 'alipay_log', "out_trade_no='{$v_oid}' and status=1")) { ?> <script type="text/javascript"> location='u'; </script> <?php } } else { echo "支付失败"; } ?> <html> <body> <TABLE width=500 border=0 align="center" cellPadding=0 cellSpacing=0> <TBODY> <TR>
//失败 $arry['msg'] = "停止任务失敗"; } } echo json_encode($arry); exit; case "jieshu_task": //结算任务 if ($_SESSION['usnamese'] == "") { $arry['id'] = 114; //未登录 $arry['msg'] = "请先登录再进行操作"; } else { $sxjs = $hdrow['ymsum'] - $Chengchurenwu; $kjf = $sxjs * $hdrow['mdnum']; if (Sitecount('id', 'remai', "yugao='{$usname}' and xianshi=1 and id={$tid}") == 1) { if (Chengchurenwu('user_renwu', "xianshi=0", "renwuid=" . $tid) > 0) { $arry['id'] = 0; //失败 $arry['msg'] = "任务结算失敗,原因是您还没审核完参与用户的稿件"; echo json_encode($arry); exit; } $count = Editstatus('remai', 3, "yugao='{$usname}'", $tid); if ($count > 0) { $Kjifen = Kjifen($usname, $kjf, $SK['MingxiB']); $arry['id'] = 214; //停止任务成功 $arry['msg'] = "任务结算成功"; } } else {
<tr> <td width="50%" class="forumrow">管 理 员:<font color='red'><?php echo Sitecount('ID', 'skadmin'); ?> </font>个 注册会员:<font color='red'><?php echo Sitecount('id', 'user'); ?> </font>个 Vip会员:<font color='red'><?php echo Sitecount('id', 'user', "type>0 and endtype>{$CCtimes}"); ?> </font>个</td> <td width="50%" class="forumrowhighlight">兑换产品:<font color='red'><?php echo Sitecount('id', 'duihuan'); ?> </font>个 参与用户:<font color='red'><?php echo Sitecount('cj_id', 'user_duihuan'); ?> </font>个</td> </tr> </table> <br> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center"><p> </p> <p>Copyright (c) 2014 <a href="<?php echo $Siteconfig['siteUrl']; ?> " title="" target="_blank"><font face="Verdana, arial, helvetica, sans-serif" ><b></b></font></a> All Rights Reserved.</p> <p> </p> <p> </p></td>
} if ($zfb != $user_row['alipayid']) { $arry['id'] = 0; //提現申請失败 $arry['msg'] = "你输入的支付宝号与原邦定的不一致"; echo json_encode($arry); exit; } if ($pwd != $user_row['password']) { $arry['id'] = 0; //提現申請失败 $arry['msg'] = "你输入的登陆密码不对"; echo json_encode($arry); exit; } if (Sitecount('id', 'money_log', "type='cash' and status=0 and name='" . $_SESSION['usnamese'] . "'") > 0) { $arry['id'] = 0; //提現申請失败 $arry['msg'] = "您有状态为“申请中”的提现,所以不能再次提现"; echo json_encode($arry); exit; } if ($je <= 0) { $arry['id'] = 0; //提現申請失败 $arry['msg'] = "提现金额不能小于或者等于0"; echo json_encode($arry); exit; } if ($user_row['money'] - $user_row['money_dongjie'] - $je < 0) { $arry['id'] = 0;
$arry["id"] = 0; //返回代号,未登录:114, $arry["msg"] = "只有买家才有权参与"; //返回信息 echo json_encode($arry); exit; } if ($ZBK['M_jf_vip'] == 1) { if (Getvip($_SESSION['usnamese']) < 1) { $arry["id"] = 128; $arry["msg"] = "只有VIP会员才有权参与"; echo json_encode($arry); exit; } } if (isset($ttid) && Sitecount('id', 'remai', "id={$ttid} and xianshi=1 and T_jieshu>'{$CCdates}'") != 1) { $arry["id"] = 0; //返回代号,未登录:114, $arry["msg"] = "任务已结束"; //返回信息 echo json_encode($arry); exit; } else { if (isset($ttid) && isset($answer)) { if (Jlcount('user_renwu', "userid=" . $Usidxx['id'] . " and renwuid={$ttid}") == 0) { $sql = "insert into user_renwu set contents='{$answer}',name='{$Rmusname}',createtime='{$CCdates}',userid=" . $Usidxx['id'] . ", renwuid={$ttid}"; } } else { $sql = "update user_renwu set contents='{$answer}' where userid=" . $Usidxx['id'] . " and id={$tid} and xianshi=0"; } mysql_query($sql);