Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
5fa6154d
Commit
5fa6154d
authored
Aug 01, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退款图片
parent
11bc26af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
0 deletions
+57
-0
OfficePayLog.php
application/api_broker/controller/OfficePayLog.php
+28
-0
PayLog.php
application/api_broker/controller/PayLog.php
+27
-0
route.php
application/route.php
+2
-0
No files found.
application/api_broker/controller/OfficePayLog.php
View file @
5fa6154d
...
@@ -236,4 +236,31 @@ class OfficePayLog extends Basic
...
@@ -236,4 +236,31 @@ class OfficePayLog extends Basic
}
}
return
$this
->
response
(
200
,
''
,
$refund_data
);
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
application/api_broker/controller/PayLog.php
View file @
5fa6154d
...
@@ -314,4 +314,30 @@ class PayLog extends Basic
...
@@ -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
application/route.php
View file @
5fa6154d
...
@@ -983,6 +983,7 @@ Route::group('broker', [
...
@@ -983,6 +983,7 @@ Route::group('broker', [
'adjustment'
=>
[
'api_broker/PayLog/adjustment'
,
[
'method'
=>
'get|post'
]],
'adjustment'
=>
[
'api_broker/PayLog/adjustment'
,
[
'method'
=>
'get|post'
]],
'getPayLogList'
=>
[
'api_broker/PayLog/getPayLogList'
,
[
'method'
=>
'get|post'
]],
'getPayLogList'
=>
[
'api_broker/PayLog/getPayLogList'
,
[
'method'
=>
'get|post'
]],
'getPayLogDetail'
=>
[
'api_broker/PayLog/getPayLogDetail'
,
[
'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'
]],
//获取电话跟进标签列表
'getUserLabels'
=>
[
'api_broker/User/getUserLabels'
,
[
'method'
=>
'get|post'
]],
//获取电话跟进标签列表
...
@@ -1097,6 +1098,7 @@ Route::group('office', [
...
@@ -1097,6 +1098,7 @@ Route::group('office', [
'adjustment'
=>
[
'api_broker/OfficePayLog/adjustment'
,
[
'method'
=>
'get|post'
]],
'adjustment'
=>
[
'api_broker/OfficePayLog/adjustment'
,
[
'method'
=>
'get|post'
]],
'refund'
=>
[
'api_broker/OfficePayLog/refund'
,
[
'method'
=>
'get|post'
]],
'refund'
=>
[
'api_broker/OfficePayLog/refund'
,
[
'method'
=>
'get|post'
]],
'getRefund'
=>
[
'api_broker/OfficePayLog/getRefund'
,
[
'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'
]],
//退款审核
'myRefundList'
=>
[
'api_broker/OfficePayLog/myRefundList'
,
[
'method'
=>
'get'
]],
//退款审核
'bargainListSearchBargainId'
=>
[
'api_broker/OfficeBargain/bargainListSearchBargainId'
,
[
'method'
=>
'POST|GET'
]],
'bargainListSearchBargainId'
=>
[
'api_broker/OfficeBargain/bargainListSearchBargainId'
,
[
'method'
=>
'POST|GET'
]],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment