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
57530dd8
Commit
57530dd8
authored
Dec 14, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
money
parent
1668d76c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
Finance.php
application/index/controller/Finance.php
+18
-11
No files found.
application/index/controller/Finance.php
View file @
57530dd8
...
...
@@ -2027,15 +2027,15 @@ class Finance extends Basic
$update
[
'role'
]
=
$this
->
params
[
'role'
];
$update
[
'scale_fee'
]
=
$this
->
params
[
'scale_fee'
];
$data
=
$this
->
m_bargain
->
updateBargainById
(
$this
->
params
[
'bargain_id'
],
$update
);
//更改分佣方
$comm
=
new
OPartialCommission
();
$partial_data
[
'scale'
]
=
$this
->
params
[
'scale'
];
$partial_data
[
'role'
]
=
$this
->
params
[
'role'
];
$partial_data
[
'should_commission'
]
=
$this
->
params
[
'scale_fee'
];
$comm
->
editData
(
$partial_data
,
$this
->
params
[
'bargain_id'
],
'bargain_id'
);
$this
->
updatePerformance
(
0
,
$this
->
params
[
'agent_id'
]);
$this
->
updatePerformance
(
0
,
$data_arr
[
'agent_id'
]);
//
$data = $this->m_bargain->updateBargainById($this->params['bargain_id'], $update); //更改分佣方
//
//
$comm = new OPartialCommission();
//
$partial_data['scale'] = $this->params['scale'];
//
$partial_data['role'] = $this->params['role'];
//
$partial_data['should_commission'] = $this->params['scale_fee'];
//
$comm->editData($partial_data, $this->params['bargain_id'], 'bargain_id');
//
$this->updatePerformance(0, $this->params['agent_id']);
//
$this->updatePerformance(0, $data_arr['agent_id']);
/*记录日志 start*/
$father_id
=
$this
->
params
[
'bargain_id'
];
...
...
@@ -2049,8 +2049,14 @@ class Finance extends Basic
$agent_id
[
1
]
=
$this
->
params
[
'agent_id'
];
$m_agent
=
new
AAgents
();
$agent_data
=
$m_agent
->
getAgentById
(
'id,name,phone'
,
[
'in_id'
=>
$agent_id
]);
$content
.=
'【分佣方:'
.
$agent_data
[
0
][
'name'
]
.
'-'
.
$agent_data
[
0
][
'phone'
]
.
'修改为:'
.
$agent_data
[
1
][
'name'
]
.
'-'
.
$agent_data
[
1
][
'phone'
]
.
'】'
;
if
(
$agent_data
[
0
][
'id'
]
==
$data_arr
[
'agent_id'
])
{
$content
.=
'【分佣方:'
.
$agent_data
[
0
][
'name'
]
.
'-'
.
$agent_data
[
0
][
'phone'
];
}
if
(
$agent_data
[
1
][
'id'
]
==
$this
->
params
[
'agent_id'
])
{
$content
.=
'修改为:'
.
$agent_data
[
1
][
'name'
]
.
'-'
.
$agent_data
[
1
][
'phone'
]
.
'】'
;
}
}
if
(
$this
->
params
[
'scale'
]
!=
$data_arr
[
'scale'
])
{
...
...
@@ -2789,6 +2795,7 @@ class Finance extends Basic
$save_data
[
'transaction_fee'
]
=
$this
->
params
[
'transaction_fee'
];
$save_data
[
'pay_type'
]
=
$this
->
params
[
'pay_type'
];
$save_data
[
'last_transfer_time'
]
=
$this
->
params
[
'last_transfer_time'
];
$save_data
[
'money'
]
=
$this
->
params
[
'money'
];
$m_pay
->
updatePayLog
(
$save_data
);
}
catch
(
\Exception
$e
)
{
$code
=
101
;
...
...
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