作者 郭鑫

退款修改

@@ -784,6 +784,9 @@ class ThirdsendController extends HomeBaseController @@ -784,6 +784,9 @@ class ThirdsendController extends HomeBaseController
784 ]; 784 ];
785 // 根据不同订单类型执行退款操作 785 // 根据不同订单类型执行退款操作
786 $orderInfo = $order_model->where($where)->find(); 786 $orderInfo = $order_model->where($where)->find();
  787 + if(empty($orderInfo) || $orderInfo['status'] == 1) {
  788 + $this->apiResponse(0,'订单状态错误');
  789 + }
787 $orderInfo['user_type'] = $needInfo['user_type']; 790 $orderInfo['user_type'] = $needInfo['user_type'];
788 $transaction_id = $orderInfo['transaction_id']; 791 $transaction_id = $orderInfo['transaction_id'];
789 $order_sn = $orderInfo['order_sn']; 792 $order_sn = $orderInfo['order_sn'];
@@ -818,6 +821,9 @@ class ThirdsendController extends HomeBaseController @@ -818,6 +821,9 @@ class ThirdsendController extends HomeBaseController
818 ]; 821 ];
819 // 根据不同订单类型执行退款操作 822 // 根据不同订单类型执行退款操作
820 $orderInfo = $order_model->where($where)->find(); 823 $orderInfo = $order_model->where($where)->find();
  824 + if(empty($orderInfo) || $orderInfo['status'] == 1) {
  825 + $this->apiResponse(0,'订单状态错误');
  826 + }
821 $orderInfo['user_type'] = $agencyInfo['user_type']; 827 $orderInfo['user_type'] = $agencyInfo['user_type'];
822 $transaction_id = $orderInfo['transaction_id']; 828 $transaction_id = $orderInfo['transaction_id'];
823 $order_sn = $orderInfo['order_sn']; 829 $order_sn = $orderInfo['order_sn'];