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
81e44a6f
Commit
81e44a6f
authored
Jul 31, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
c9aa2042
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
18 deletions
+24
-18
PayLog.php
application/api_broker/controller/PayLog.php
+24
-18
No files found.
application/api_broker/controller/PayLog.php
View file @
81e44a6f
...
@@ -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
);
}
}
/**我的收款记录列表
/**我的收款记录列表
...
...
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