Commit 9fa28db3 by 冷斌

update

parent 4a677c49
...@@ -75,17 +75,17 @@ if($verify_result) { ...@@ -75,17 +75,17 @@ if($verify_result) {
$link = mysql_connect("","",""); $link = mysqli_connect("mysql","zhibo","Rni43v7RpkWUP9FD");
if($link){ if($link){
mysql_select_db("",$link); mysqli_select_db("zhibo",$link);
mysql_query("set names utf8"); mysqli_query("set names utf8");
$result = mysql_query("select * from cmf_users_charge where orderno='$out_trade_no' and money='$total_fee' and status='0' and type='1'"); $result = mysqli_query("select * from cmf_users_charge where orderno='$out_trade_no' and money='$total_fee' and status='0' and type='1'");
$row = mysql_fetch_assoc($result); $row = mysqli_fetch_assoc($result);
$str = json_encode($row); $str = json_encode($row);
if($row){ if($row){
mysql_query("update cmf_users set coin=coin+{$row['coin']} where id='$row[touid]'"); mysqli_query("update cmf_users set coin=coin+{$row['coin']} where id='$row[touid]'");
mysql_query("update cmf_users_charge set status='1',trade_no='$trade_no' where id={$row['id']}"); mysqli_query("update cmf_users_charge set status='1',trade_no='$trade_no' where id={$row['id']}");
file_put_contents('./logali.txt',date('y-m-d h:i:s').' msg:'."支付成功:\r\n",FILE_APPEND); file_put_contents('./logali.txt',date('y-m-d h:i:s').' msg:'."支付成功:\r\n",FILE_APPEND);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment