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
e52cd562
Commit
e52cd562
authored
Aug 02, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
type
parent
bd407595
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
43 deletions
+44
-43
OfficePayLog.php
application/api_broker/controller/OfficePayLog.php
+21
-21
PayLog.php
application/api_broker/controller/PayLog.php
+23
-22
No files found.
application/api_broker/controller/OfficePayLog.php
View file @
e52cd562
...
@@ -181,29 +181,29 @@ class OfficePayLog extends Basic
...
@@ -181,29 +181,29 @@ class OfficePayLog extends Basic
$page_no
=
empty
(
$this
->
params
[
"page_no"
])
?
1
:
$this
->
params
[
"page_no"
];
$page_no
=
empty
(
$this
->
params
[
"page_no"
])
?
1
:
$this
->
params
[
"page_no"
];
$page_size
=
empty
(
$this
->
params
[
"page_size"
])
?
2
:
$this
->
params
[
"page_size"
];
$page_size
=
empty
(
$this
->
params
[
"page_size"
])
?
2
:
$this
->
params
[
"page_size"
];
// if (empty($this->params['agent_id'])
)) {
if
(
empty
(
$this
->
params
[
'agent_id'
]
))
{
//
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,receipt_number,report_id,order_no'
;
$field
=
'id,create_time,agent_name,refund_money,order_id,pay_log_id,bank,card_no,name,remark,receipt_number,report_id,order_no
,type
'
;
$where
[
'is_del'
]
=
0
;
$where
[
'is_del'
]
=
0
;
$m_refund
=
new
OfficeORefundModel
();
$m_refund
=
new
OfficeORefundModel
();
...
...
application/api_broker/controller/PayLog.php
View file @
e52cd562
...
@@ -184,28 +184,29 @@ class PayLog extends Basic
...
@@ -184,28 +184,29 @@ class PayLog extends Basic
$page_no
=
empty
(
$this
->
params
[
"page_no"
])
?
1
:
$this
->
params
[
"page_no"
];
$page_no
=
empty
(
$this
->
params
[
"page_no"
])
?
1
:
$this
->
params
[
"page_no"
];
$page_size
=
empty
(
$this
->
params
[
"page_size"
])
?
2
:
$this
->
params
[
"page_size"
];
$page_size
=
empty
(
$this
->
params
[
"page_size"
])
?
2
:
$this
->
params
[
"page_size"
];
// if (empty($this->params['agent_id']))) {
if
(
empty
(
$this
->
params
[
'agent_id'
]))
{
// return $this->response(101, '参数错误');
return
$this
->
response
(
101
,
'参数错误'
);
// }
}
// $where['agent_id'] = $this->params['agent_id'];
// switch ($this->params['type']) {
$where
[
'agent_id'
]
=
$this
->
params
[
'agent_id'
];
// case 1 :
switch
(
$this
->
params
[
'type'
])
{
// $where['status'] = 1;
case
1
:
// break;
$where
[
'status'
]
=
1
;
// case 2 :
break
;
// $where['status'] = 4;
case
2
:
// break;
$where
[
'status'
]
=
4
;
// case 3 :
break
;
// $where['status'] = 3;
case
3
:
// break;
$where
[
'status'
]
=
3
;
// case 4 :
break
;
// $where['status'] = 2;
case
4
:
// break;
$where
[
'status'
]
=
2
;
// default :
break
;
// return $this->response(101, '类型错误');
default
:
// }
return
$this
->
response
(
101
,
'类型错误'
);
}
$field
=
'id,create_time,agent_name,refund_money,order_id,pay_log_id,bank,card_no,name,remark,receipt_number,report_id,order_no'
;
$field
=
'id,create_time,agent_name,refund_money,order_id,pay_log_id,bank,card_no,name,remark,receipt_number,report_id,order_no,type'
;
$where
[
'is_del'
]
=
0
;
$where
[
'is_del'
]
=
0
;
$m_refund
=
new
ORefundModel
();
$m_refund
=
new
ORefundModel
();
...
...
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