...
|
...
|
@@ -34,13 +34,15 @@ class NotifyController extends HomeBaseController |
|
|
$data = $base->FromXml($xml);
|
|
|
if($base->CheckSign() == true){
|
|
|
if ($data["return_code"] == "SUCCESS") {
|
|
|
$where['order_sn'] = $data['attach'];
|
|
|
$order_sn = $where['order_sn'] = $data['attach'];
|
|
|
if (!$where['order_sn']) {
|
|
|
$where['order_sn'] = $data['out_trade_no'];
|
|
|
}
|
|
|
// $where['money'] = $data['total_fee']/100;
|
|
|
$where['money'] = 1;
|
|
|
$order_model = new OrderModel();
|
|
|
$orderInfo = $order_model->where(['order_sn'=>$order_sn])->find();
|
|
|
if($orderInfo['status'] == 1) {
|
|
|
$info = [
|
|
|
'pay_time'=>time(),
|
|
|
'status'=>2,
|
...
|
...
|
@@ -54,6 +56,7 @@ class NotifyController extends HomeBaseController |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* 给微信发送确认订单金额和签名正确,SUCCESS信息
|
...
|
...
|
|