Commit 5fa6154d authored by hujun's avatar hujun

退款图片

parent 11bc26af
......@@ -236,4 +236,31 @@ class OfficePayLog extends Basic
}
return $this->response(200, '', $refund_data);
}
/*
* 保存退款图片
*/
public function uploadRefundImage()
{
if (empty($this->params['refund_id'])) {
return $this->response(101, '参数错误');
}
$remark_img = json_decode($this->params["remark_img"], true);
if (is_array($remark_img)) {
return $this->response(101, '图片参数错误');
}
$id = $this->params['refund_id'];
$oImgModel = new OfficeOImg();
$result = $oImgModel->addImgAll($id, 3, $remark_img);
if ($result == 1) {
$code = 200;
} else {
$code = 101;
$msg = '保存图片失败';
}
return $this->response($code, $msg);
}
}
\ No newline at end of file
......@@ -314,4 +314,30 @@ class PayLog extends Basic
}
}
/*
* 保存退款图片
*/
public function uploadRefundImage()
{
if (empty($this->params['refund_id'])) {
return $this->response(101, '参数错误');
}
$remark_img = json_decode($this->params["remark_img"], true);
if (is_array($remark_img)) {
return $this->response(101, '图片参数错误');
}
$id = $this->params['refund_id'];
$oImgModel = new OImg();
$result = $oImgModel->addImgAll($id, 3, $remark_img);
if ($result == 1) {
$code = 200;
} else {
$code = 101;
$msg = '保存图片失败';
}
return $this->response($code, $msg);
}
}
\ No newline at end of file
......@@ -983,6 +983,7 @@ Route::group('broker', [
'adjustment' => ['api_broker/PayLog/adjustment', ['method' => 'get|post']],
'getPayLogList' => ['api_broker/PayLog/getPayLogList', ['method' => 'get|post']],
'getPayLogDetail' => ['api_broker/PayLog/getPayLogDetail', ['method' => 'get|post']],
'uploadRefundImage' => ['api_broker/PayLog/uploadRefundImage', ['method' => 'post']],
//原生客户详情
'getUserLabels' => ['api_broker/User/getUserLabels', ['method' => 'get|post']],//获取电话跟进标签列表
......@@ -1097,6 +1098,7 @@ Route::group('office', [
'adjustment' => ['api_broker/OfficePayLog/adjustment', ['method' => 'get|post']],
'refund' => ['api_broker/OfficePayLog/refund', ['method' => 'get|post']],
'getRefund' => ['api_broker/OfficePayLog/getRefund', ['method' => 'get|post']],
'uploadRefundImage' => ['api_broker/OfficePayLog/uploadRefundImage', ['method' => 'post']],
'myRefundList' => ['api_broker/OfficePayLog/myRefundList', ['method' => 'get']], //退款审核
'bargainListSearchBargainId' => ['api_broker/OfficeBargain/bargainListSearchBargainId', ['method' => 'POST|GET']],
......
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