Commit 3d1dfd7a by 冷斌

fix bug

parent da7cdfd3
...@@ -43,8 +43,8 @@ $input->SetNotify_url('http://'.$_SERVER['HTTP_HOST'].'/wxpay/pay/notify_jsapi.p ...@@ -43,8 +43,8 @@ $input->SetNotify_url('http://'.$_SERVER['HTTP_HOST'].'/wxpay/pay/notify_jsapi.p
$input->SetTrade_type("JSAPI"); $input->SetTrade_type("JSAPI");
$input->SetOpenid($openId); $input->SetOpenid($openId);
$order = WxPayApi::unifiedOrder($input); $order = WxPayApi::unifiedOrder($input);
echo '<font color="#f00"><b>统一下单支付单信息</b></font><br/>'; //echo '<font color="#f00"><b>统一下单支付单信息</b></font><br/>';
printf_info($order); //printf_info($order);
$jsApiParameters = $tools->GetJsApiParameters($order); $jsApiParameters = $tools->GetJsApiParameters($order);
......
...@@ -62,7 +62,7 @@ class PayNotifyCallBack extends WxPayNotify ...@@ -62,7 +62,7 @@ class PayNotifyCallBack extends WxPayNotify
$coin=$row['coin']+$row['coin_give']; $coin=$row['coin']+$row['coin_give'];
$link->query("update cmf_users set coin=coin+{$coin} where id='$row[touid]'"); $link->query("update cmf_users set coin=coin+{$coin} where id='$row[touid]'");
$link->query("update cmf_users_charge set status='1',trade_no='{$transaction_id}' where id={$row['id']}"); $link->query("update cmf_users_charge set status='1',trade_no='{$transaction_id}' where id={$row['id']}");
share($link, $row['touid'], $coin); $this->share($link, $row['touid'], $coin);
Log::DEBUG("支付成功"); Log::DEBUG("支付成功");
}else{ }else{
Log::DEBUG($out_trade_no.' 订单信息不存在'); Log::DEBUG($out_trade_no.' 订单信息不存在');
......
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