|
|
@@ -110,6 +110,7 @@ class TaskPartnerProfits
|
|
110
|
110
|
$startTime = $request->param('startTime', null);
|
|
111
|
111
|
$endTime = $request->param('endTime', null);
|
|
112
|
112
|
$isTest = $request->param('isTest', 1);
|
|
|
113
|
+ $maxAllocationAmount = $request->param('maxAllocationAmount', null);
|
|
113
|
114
|
|
|
114
|
115
|
// 查询测试人员账号信息
|
|
115
|
116
|
//18973958920
|
|
|
@@ -142,6 +143,11 @@ class TaskPartnerProfits
|
|
142
|
143
|
if ($weekRecord <= 0) {
|
|
143
|
144
|
return json('无效分红金额');
|
|
144
|
145
|
}
|
|
|
146
|
+ if (!is_null($maxAllocationAmount)) {
|
|
|
147
|
+ if ($weekRecord > $maxAllocationAmount) {
|
|
|
148
|
+ $weekRecord = $maxAllocationAmount;
|
|
|
149
|
+ }
|
|
|
150
|
+ }
|
|
145
|
151
|
|
|
146
|
152
|
|
|
147
|
153
|
// 1、获取用户星级信息
|