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
2472da0f
Commit
2472da0f
authored
Sep 20, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
确认分佣不覆盖之前的数据
parent
cb5e27c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
Finance.php
application/index/controller/Finance.php
+5
-2
OPartialCommission.php
application/model/OPartialCommission.php
+15
-0
No files found.
application/index/controller/Finance.php
View file @
2472da0f
...
...
@@ -847,8 +847,11 @@ class Finance extends Basic
if
(
$check
->
vip
(
$this
->
userId
,
'account_commission'
))
{
return
$this
->
response
(
101
,
'没有权限!'
);
}
$update_arr
[
$i
][
'confirm_date'
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$update_arr
[
$i
][
'confirm_status'
]
=
1
;
$partial_data
=
$m_partial
->
getPartialDetail
(
'confirm_date'
,
[
'id'
=>
$item
[
'commission_id'
]]);
if
(
empty
(
$partial_data
[
'confirm_date'
]))
{
$update_arr
[
$i
][
'confirm_date'
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$update_arr
[
$i
][
'confirm_status'
]
=
1
;
}
}
$i
++
;
...
...
application/model/OPartialCommission.php
View file @
2472da0f
...
...
@@ -428,4 +428,18 @@ class OPartialCommission extends BaseModel
return
$result
;
}
/**
* @param $field
* @param $where
* @return array|false|\PDOStatement|string|\think\Model
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getPartialDetail
(
$field
,
$where
)
{
return
$this
->
field
(
$field
)
->
where
(
$where
)
->
find
();
}
}
\ No newline at end of file
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