|
@@ -75,6 +75,7 @@ class Notification extends Api
|
|
$time = date('H:i');
|
|
$time = date('H:i');
|
|
$order_list = $order_model->where('status',2)->select();
|
|
$order_list = $order_model->where('status',2)->select();
|
|
foreach ($order_list as &$v){
|
|
foreach ($order_list as &$v){
|
|
|
|
+
|
|
$user_info =$user_model->where('id',$v['t_user_id'])->field('sms_number,duanxin')->find();
|
|
$user_info =$user_model->where('id',$v['t_user_id'])->field('sms_number,duanxin')->find();
|
|
if($time>$v['end']) {//执行退款发送信息
|
|
if($time>$v['end']) {//执行退款发送信息
|
|
$type = 'wechat';
|
|
$type = 'wechat';
|
|
@@ -82,6 +83,7 @@ class Notification extends Api
|
|
$type = 'alipay';
|
|
$type = 'alipay';
|
|
}
|
|
}
|
|
$re = $writeoff_model->refund_order($v['order_money'],$v['order_no'],$type);
|
|
$re = $writeoff_model->refund_order($v['order_money'],$v['order_no'],$type);
|
|
|
|
+ print_r($re);die;
|
|
if($re) {
|
|
if($re) {
|
|
if ($user_info['sms_number'] > 0 && $user_info['duanxin'] == 1) {
|
|
if ($user_info['sms_number'] > 0 && $user_info['duanxin'] == 1) {
|
|
$sms_model->order_guoshi($v['phone'], $v['order_no'], $v['order_money'], $v['t_user_id']);
|
|
$sms_model->order_guoshi($v['phone'], $v['order_no'], $v['order_money'], $v['t_user_id']);
|