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
70814784
Commit
70814784
authored
Aug 21, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
55b86b85
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
10 deletions
+24
-10
OfficeOrderLog.php
application/api_broker/controller/OfficeOrderLog.php
+2
-0
OrderLog.php
application/api_broker/controller/OrderLog.php
+12
-10
OfficeOrderLogService.php
application/api_broker/service/OfficeOrderLogService.php
+3
-0
OrderLogService.php
application/api_broker/service/OrderLogService.php
+3
-0
Finance.php
application/index/controller/Finance.php
+2
-0
OfficePayLog.php
application/index/controller/OfficePayLog.php
+2
-0
No files found.
application/api_broker/controller/OfficeOrderLog.php
View file @
70814784
...
...
@@ -160,6 +160,8 @@ class OfficeOrderLog extends Basic{
return
$this
->
response
(
"101"
,
"付款类型或支付方式错误"
);
}
elseif
(
$is_ok
==
-
2
)
{
return
$this
->
response
(
"101"
,
"调整金额不能多于可被调整的金额"
);
}
elseif
(
$is_ok
==
-
3
){
return
$this
->
response
(
"101"
,
"门店未查询到"
);
}
return
$this
->
response
(
"101"
,
"request faild"
);
}
...
...
application/api_broker/controller/OrderLog.php
View file @
70814784
...
...
@@ -190,6 +190,8 @@ class OrderLog extends Basic
return
$this
->
response
(
"101"
,
"付款类型或支付方式错误"
);
}
elseif
(
$is_ok
==
-
2
)
{
return
$this
->
response
(
"101"
,
"调整金额不能多于可被调整的金额"
);
}
elseif
(
$is_ok
==
-
3
)
{
return
$this
->
response
(
"101"
,
"门店未查询到"
);
}
return
$this
->
response
(
"101"
,
"request faild"
);
}
...
...
@@ -201,10 +203,10 @@ class OrderLog extends Basic
public
function
isShowAdjustment
()
{
$params
=
$this
->
params
;
/* $params = array(
"pay_id" => 1,
"agent_id" => 11,
);*/
/* $params = array(
"pay_id" => 1,
"agent_id" => 11,
);*/
if
(
empty
(
$params
[
"pay_id"
])
||
empty
(
$params
[
"agent_id"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
...
...
@@ -212,12 +214,12 @@ class OrderLog extends Basic
$agent_id
=
$params
[
"agent_id"
];
$result
=
$this
->
service_
->
verifyIsShowAdjustment
(
$pay_id
,
$agent_id
);
if
(
$result
[
"code"
]
==
101
)
{
return
$this
->
response
(
"101"
,
$result
[
"msg"
]);
}
else
if
(
$result
[
"code"
]
==
200
)
{
return
$this
->
response
(
"200"
,
"success"
,
[
"is_show"
=>
$result
[
"is_show"
]]);
if
(
$result
[
"code"
]
==
101
)
{
return
$this
->
response
(
"101"
,
$result
[
"msg"
]);
}
else
if
(
$result
[
"code"
]
==
200
)
{
return
$this
->
response
(
"200"
,
"success"
,
[
"is_show"
=>
$result
[
"is_show"
]]);
}
return
$this
->
response
(
"200"
,
"success"
,
[
"is_show"
=>
false
]);
return
$this
->
response
(
"200"
,
"success"
,
[
"is_show"
=>
false
]);
}
...
...
@@ -362,7 +364,7 @@ class OrderLog extends Basic
}
try
{
$list
=
$this
->
service_
->
searchBargainAgents
(
$params
[
"type"
],
$params
[
"order_id"
],
$this
->
siteId
);
$list
=
$this
->
service_
->
searchBargainAgents
(
$params
[
"type"
],
$params
[
"order_id"
],
$this
->
siteId
);
if
(
count
(
$list
)
>
0
)
{
return
$this
->
response
(
"200"
,
"request success"
,
$list
);
}
else
{
...
...
application/api_broker/service/OfficeOrderLogService.php
View file @
70814784
...
...
@@ -88,6 +88,9 @@ class OfficeOrderLogService
$redis_service
=
new
RedisCacheService
();
$agent_data
=
$redis_service
->
getRedisCache
(
2
,
$agent_id
);
$store_id
=
$agent_data
[
'store_id'
];
if
(
$store_id
<=
0
){
return
-
3
;
}
foreach
(
$collecting_bill
as
$collecting
)
{
if
(
isset
(
$collecting
[
"type"
])
&&
isset
(
$collecting
[
"pay_type"
])
&&
isset
(
$collecting
[
"money"
]))
{
if
(
!
$this
->
verifyType
(
$collecting
[
"type"
],
$collecting
[
"pay_type"
],
$receipt_number
))
{
...
...
application/api_broker/service/OrderLogService.php
View file @
70814784
...
...
@@ -87,6 +87,9 @@ class OrderLogService
$redis_service
=
new
RedisCacheService
();
$agent_data
=
$redis_service
->
getRedisCache
(
2
,
$agent_id
);
$store_id
=
$agent_data
[
'store_id'
];
if
(
$store_id
<=
0
){
return
-
3
;
}
foreach
(
$collecting_bill
as
$collecting
)
{
if
(
isset
(
$collecting
[
"type"
])
&&
isset
(
$collecting
[
"pay_type"
])
&&
isset
(
$collecting
[
"money"
]))
{
if
(
!
$this
->
verifyType
(
$collecting
[
"type"
],
$collecting
[
"pay_type"
],
$receipt_number
))
{
...
...
application/index/controller/Finance.php
View file @
70814784
...
...
@@ -4051,6 +4051,8 @@ class Finance extends Basic
return
$this
->
response
(
"101"
,
"付款类型或支付方式错误"
);
}
elseif
(
$is_ok
==
-
2
)
{
return
$this
->
response
(
"101"
,
"调整金额不能多于可被调整的金额"
);
}
elseif
(
$is_ok
==
-
3
){
return
$this
->
response
(
"101"
,
"门店未查询到"
);
}
return
$this
->
response
(
"101"
,
"request faild"
);
}
...
...
application/index/controller/OfficePayLog.php
View file @
70814784
...
...
@@ -2390,6 +2390,8 @@ class OfficePayLog extends Basic
return
$this
->
response
(
"101"
,
"付款类型或支付方式错误"
);
}
elseif
(
$is_ok
==
-
2
)
{
return
$this
->
response
(
"101"
,
"调整金额不能多于可被调整的金额"
);
}
elseif
(
$is_ok
==
-
3
){
return
$this
->
response
(
"101"
,
"门店未查询到"
);
}
return
$this
->
response
(
"101"
,
"request faild"
);
}
...
...
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