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
ae8102e2
Commit
ae8102e2
authored
Aug 07, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款列表记录上传图片
parent
b27f5ef9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
PayLog.php
application/api_broker/controller/PayLog.php
+39
-0
route.php
application/route.php
+1
-0
No files found.
application/api_broker/controller/PayLog.php
View file @
ae8102e2
...
@@ -343,4 +343,42 @@ class PayLog extends Basic
...
@@ -343,4 +343,42 @@ class PayLog extends Basic
}
}
return
$this
->
response
(
$code
,
$msg
);
return
$this
->
response
(
$code
,
$msg
);
}
}
/**
* 收款列表记录上传图片
* 朱伟 2018-07-04
*/
public
function
addReceiptImg
(){
$params
=
$this
->
params
;
$result
=
0
;
/*$params = array(
"img_id" => 1,
"img_name" => 123,
);*/
if
(
!
isset
(
$params
[
"img_id"
])){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
if
(
!
isset
(
$params
[
"img_name"
])){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
$order
=
new
OImg
();
$img_arr
=
explode
(
','
,
$params
[
"img_name"
]);
foreach
(
$img_arr
as
$k
=>
$v
){
$time
=
date
(
"Y-m-d H:i:s"
);
$save_data
[
"img_id"
]
=
$params
[
"img_id"
];
//id根据img_type区分是收款还是进场还是其他'
$save_data
[
"img_type"
]
=
2
;
//图片类型:1进场,2收款
$save_data
[
"img_name"
]
=
$v
;
//图片名称
$save_data
[
"img_status"
]
=
0
;
//删除状态 0正常 1删除
$save_data
[
"update_time"
]
=
$time
;
//更新时间
$save_data
[
"create_time"
]
=
$time
;
//创建时间
$result
=
$order
->
addImgOnce
(
$save_data
);
}
if
(
$result
){
return
$this
->
response
(
"200"
,
"成功"
);
}
else
{
return
$this
->
response
(
"101"
,
"失败"
);
}
}
}
}
\ No newline at end of file
application/route.php
View file @
ae8102e2
...
@@ -993,6 +993,7 @@ Route::group('broker', [
...
@@ -993,6 +993,7 @@ Route::group('broker', [
'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'
]],
'uploadRefundImage'
=>
[
'api_broker/PayLog/uploadRefundImage'
,
[
'method'
=>
'post'
]],
'addReceiptImg'
=>
[
'api_broker/PayLog/addReceiptImg'
,
[
'method'
=>
'post'
]],
//收款上传图片
//原生客户详情
//原生客户详情
'getUserLabels'
=>
[
'api_broker/User/getUserLabels'
,
[
'method'
=>
'get|post'
]],
//获取电话跟进标签列表
'getUserLabels'
=>
[
'api_broker/User/getUserLabels'
,
[
'method'
=>
'get|post'
]],
//获取电话跟进标签列表
...
...
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