Commit 81e44a6f authored by hujun's avatar hujun

2

parent c9aa2042
...@@ -195,24 +195,24 @@ class PayLog extends Basic ...@@ -195,24 +195,24 @@ class PayLog extends Basic
// return $this->response(101, '参数错误'); // return $this->response(101, '参数错误');
// } // }
// $where['agent_id'] = $this->params['agent_id']; // $where['agent_id'] = $this->params['agent_id'];
switch ($this->params['type']) { // switch ($this->params['type']) {
case 1 : // case 1 :
$where['status'] = 1; // $where['status'] = 1;
break; // break;
case 2 : // case 2 :
$where['status'] = 4; // $where['status'] = 4;
break; // break;
case 3 : // case 3 :
$where['status'] = 3; // $where['status'] = 3;
break; // break;
case 4 : // case 4 :
$where['status'] = 2; // $where['status'] = 2;
break; // break;
default : // default :
return $this->response(101, '类型错误'); // return $this->response(101, '类型错误');
} // }
$field = 'id,create_time,agent_name,refund_money,order_id,pay_log_id,bank,card_no,name,remark'; $field = 'id,create_time,agent_name,refund_money,order_id,pay_log_id,bank,card_no,name,remark,receipt_number';
$where['is_del'] = 0; $where['is_del'] = 0;
$m_refund = new OfficeORefundModel(); $m_refund = new OfficeORefundModel();
...@@ -236,8 +236,14 @@ class PayLog extends Basic ...@@ -236,8 +236,14 @@ class PayLog extends Basic
$refund_data[$k]['image_array'] = $m_img->getImgList(['img_id' => $v['id'], 'img_type' => 3]); $refund_data[$k]['image_array'] = $m_img->getImgList(['img_id' => $v['id'], 'img_type' => 3]);
$refund_data[$k]['check_log'] = $m_check_log->getListAll('create_time,operation_name', ['refund_id' => $v['id'], 'is_del' => 0]); $refund_data[$k]['check_log'] = $m_check_log->getListAll('create_time,operation_name', ['refund_id' => $v['id'], 'is_del' => 0]);
$refund_data[$k]['file_path'] = 'static/chat_image/'; $refund_data[$k]['file_path'] = 'static/chat_image/';
if ($v['status'] == 2) {
$refund_data[$k]['transfer_image_array'] = $m_img->getImgList(['img_id' => $v['id'], 'img_type' => 4]);
} else {
$refund_data[$k]['transfer_image_array'] = [];
}
} }
return $this->response("101", $refund_data); return $this->response(200, $refund_data);
} }
/**我的收款记录列表 /**我的收款记录列表
......
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