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
7ce32b43
Commit
7ce32b43
authored
Oct 18, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入账时间
parent
91235138
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
Shop.php
application/api/controller/Shop.php
+1
-1
OrderLog.php
application/api_broker/controller/OrderLog.php
+2
-1
OrderLogService.php
application/api_broker/service/OrderLogService.php
+8
-4
No files found.
application/api/controller/Shop.php
View file @
7ce32b43
...
@@ -103,7 +103,7 @@ class Shop extends Basic
...
@@ -103,7 +103,7 @@ class Shop extends Basic
//c端查对外的名字 b端查对内的名字
//c端查对外的名字 b端查对内的名字
if
(
isset
(
$params
[
'title'
]))
{
if
(
isset
(
$params
[
'title'
]))
{
$conditions
[
'external_title'
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
'title'
])
.
"%"
);
$conditions
[
'external_title
|external_address
'
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
'title'
])
.
"%"
);
}
}
//c端查对外的名字 b端查对内的名字
//c端查对外的名字 b端查对内的名字
...
...
application/api_broker/controller/OrderLog.php
View file @
7ce32b43
...
@@ -120,8 +120,9 @@ class OrderLog extends Basic
...
@@ -120,8 +120,9 @@ class OrderLog extends Basic
$transfer_img
=
isset
(
$params
[
"transfer_img"
])
?
json_decode
(
$params
[
"transfer_img"
]
,
true
)
:
""
;
$transfer_img
=
isset
(
$params
[
"transfer_img"
])
?
json_decode
(
$params
[
"transfer_img"
]
,
true
)
:
""
;
Log
::
record
(
"********************transfer_img**"
.
json_encode
(
$transfer_img
));
Log
::
record
(
"********************transfer_img**"
.
json_encode
(
$transfer_img
));
$source
=
isset
(
$params
[
"source"
])
?
$params
[
"source"
]
:
0
;
$source
=
isset
(
$params
[
"source"
])
?
$params
[
"source"
]
:
0
;
$income_time
=
isset
(
$params
[
"income_time"
])
?
$params
[
"income_time"
]
:
""
;
$is_ok
=
$this
->
service_
->
addCollectingBillV2
(
$params
[
"agent_id"
],
$params
[
"agent_name"
],
$params
[
"report_id"
],
$params
[
"order_id"
],
$params
[
"order_no"
],
$is_ok
=
$this
->
service_
->
addCollectingBillV2
(
$params
[
"agent_id"
],
$params
[
"agent_name"
],
$params
[
"report_id"
],
$params
[
"order_id"
],
$params
[
"order_no"
],
$params
[
"collecting_bill"
],
$params
[
"house_number"
],
$params
[
"industry_type"
],
$remark
,
$transfer_img
,
$source
);
$params
[
"collecting_bill"
],
$params
[
"house_number"
],
$params
[
"industry_type"
],
$remark
,
$transfer_img
,
$source
,
$income_time
);
if
(
$is_ok
>
0
)
{
if
(
$is_ok
>
0
)
{
return
$this
->
response
(
"200"
,
"request success"
,
[
"bill_id"
=>
$is_ok
]);
return
$this
->
response
(
"200"
,
"request success"
,
[
"bill_id"
=>
$is_ok
]);
...
...
application/api_broker/service/OrderLogService.php
View file @
7ce32b43
...
@@ -61,7 +61,7 @@ class OrderLogService
...
@@ -61,7 +61,7 @@ class OrderLogService
* @throws \think\exception\DbException
* @throws \think\exception\DbException
*/
*/
public
function
addCollectingBillV2
(
$agent_id
,
$agent_name
,
$report_id
,
$order_id
,
$order_no
,
$collecting_bill
,
$house_number
,
public
function
addCollectingBillV2
(
$agent_id
,
$agent_name
,
$report_id
,
$order_id
,
$order_no
,
$collecting_bill
,
$house_number
,
$industry_type
,
$remark
,
$transfer_img
,
$source
)
$industry_type
,
$remark
,
$transfer_img
,
$source
,
$income_time
)
{
{
$bill_arr
=
$params
=
[];
$bill_arr
=
$params
=
[];
$father_id
=
0
;
$father_id
=
0
;
...
@@ -69,11 +69,11 @@ class OrderLogService
...
@@ -69,11 +69,11 @@ class OrderLogService
if
(
isset
(
$collecting
[
"type"
])
&&
isset
(
$collecting
[
"pay_type"
])
&&
isset
(
$collecting
[
"money"
]))
{
if
(
isset
(
$collecting
[
"type"
])
&&
isset
(
$collecting
[
"pay_type"
])
&&
isset
(
$collecting
[
"money"
]))
{
if
(
$father_id
==
0
)
{
if
(
$father_id
==
0
)
{
$params
=
$this
->
collectingBillBin
(
$father_id
,
$collecting
,
$agent_id
,
$agent_name
,
$report_id
,
$order_id
,
$order_no
,
$params
=
$this
->
collectingBillBin
(
$father_id
,
$collecting
,
$agent_id
,
$agent_name
,
$report_id
,
$order_id
,
$order_no
,
$house_number
,
$industry_type
,
$remark
,
$transfer_img
,
$source
);
$house_number
,
$industry_type
,
$remark
,
$transfer_img
,
$source
,
$income_time
);
$father_id
=
$this
->
payLogModel
->
insertPayLog
(
$params
);
$father_id
=
$this
->
payLogModel
->
insertPayLog
(
$params
);
}
else
{
}
else
{
array_push
(
$bill_arr
,
$this
->
collectingBillBin
(
$father_id
,
$collecting
,
$agent_id
,
$agent_name
,
$report_id
,
$order_id
,
$order_no
,
array_push
(
$bill_arr
,
$this
->
collectingBillBin
(
$father_id
,
$collecting
,
$agent_id
,
$agent_name
,
$report_id
,
$order_id
,
$order_no
,
$house_number
,
$industry_type
,
$remark
,
$transfer_img
,
$source
));
$house_number
,
$industry_type
,
$remark
,
$transfer_img
,
$source
,
$income_time
));
}
}
}
}
}
}
...
@@ -139,7 +139,7 @@ class OrderLogService
...
@@ -139,7 +139,7 @@ class OrderLogService
}
}
private
function
collectingBillBin
(
$father_id
,
$collecting_arr
,
$agent_id
,
$agent_name
,
$report_id
,
$order_id
,
$order_no
,
$house_number
,
private
function
collectingBillBin
(
$father_id
,
$collecting_arr
,
$agent_id
,
$agent_name
,
$report_id
,
$order_id
,
$order_no
,
$house_number
,
$industry_type
,
$remark
,
$transfer_img
,
$source
)
$industry_type
,
$remark
,
$transfer_img
,
$source
,
$income_time
)
{
{
$arr
[
"report_id"
]
=
$report_id
;
$arr
[
"report_id"
]
=
$report_id
;
...
@@ -158,6 +158,10 @@ class OrderLogService
...
@@ -158,6 +158,10 @@ class OrderLogService
$arr
[
"transfer_img"
]
=
$transfer_img
;
$arr
[
"transfer_img"
]
=
$transfer_img
;
$arr
[
"create_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$arr
[
"create_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$arr
[
"update_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$arr
[
"update_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
if
(
$income_time
){
$arr
[
"income_time"
]
=
date
(
"Y-m-d H:i:s"
,
$income_time
);
}
return
$arr
;
return
$arr
;
}
}
...
...
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