=0){ //表示已经达到生效时间,开始执行担保解除指令 PointUpdate($row1[uid1],$row1[money1]); PointInto($row1[uid1],"商品被购买",$row1[money1],$row1[codebh]); deletetable("code_moneydb where id=".$row1[id]); deletetable("code_moneyback where downbh='".$row1[downbh]."'"); updatetable("code_down","ddzt='suc' where downbh='".$row1[downbh]."'"); } } while1("id,money1,money2,oksj,uid1,uid2,codebh,zt,downbh","code_moneyback where (uid1='".$_SESSION[codeuser]."' or uid2='".$_SESSION[codeuser]."')"); while($row1=mysql_fetch_array($res1)){ $sjc=DateDiff($sj1,$row1[oksj],"s"); if($sjc>=0){ //表示已经达到生效时间,开始执行退款解除指令 if($row1[zt]==0){ //表示卖家未处理,款项退回买家帐户 deletetable("code_moneydb where downbh='".$row1[downbh]."'"); deletetable("code_moneyback where downbh='".$row1[downbh]."'"); updatetable("code_down","ddzt='backsuc' where downbh='".$row1[downbh]."'"); PointUpdate($row1[uid2],$row1[money1]); PointInto($row1[uid2],"退款成功",$row1[money1],$row1[codebh]); }elseif($row1[zt]==1){ //表示卖家不同意,设为交易成功 deletetable("code_moneydb where downbh='".$row1[downbh]."'"); deletetable("code_moneyback where downbh='".$row1[downbh]."'"); updatetable("code_down","ddzt='suc' where downbh='".$row1[downbh]."'"); PointUpdate($row1[uid1],$row1[money1]); PointInto($row1[uid1],"交易成功",$row1[money1],$row1[codebh]); } } } buysellmoney($_SESSION[codeuser],"buy"); buysellmoney($_SESSION[codeuser],"sell"); ?>
我是卖家
我是买家
我的管理中心