|
|
@@ -783,14 +783,14 @@ class Taskorderguquan
|
|
783
|
783
|
$redEnvelope = $this->getRedEnvelopeByTime($startTime, $endTime, $removeUserIdList);
|
|
784
|
784
|
|
|
785
|
785
|
$weekRecord -= $redEnvelope;
|
|
|
786
|
+
|
|
|
787
|
+ if (!is_null($maxAllocationAmount)) {
|
|
|
788
|
+ $weekRecord = $maxAllocationAmount;
|
|
|
789
|
+ }
|
|
|
790
|
+
|
|
786
|
791
|
if ($weekRecord <= 0) {
|
|
787
|
792
|
return json('无效分红金额');
|
|
788
|
793
|
}
|
|
789
|
|
- if (!is_null($maxAllocationAmount)) {
|
|
790
|
|
- if ($weekRecord > $maxAllocationAmount) {
|
|
791
|
|
- $weekRecord = $maxAllocationAmount;
|
|
792
|
|
- }
|
|
793
|
|
- }
|
|
794
|
794
|
|
|
795
|
795
|
// $stock_comm = round($weekRecord * 0.05 ,2);
|
|
796
|
796
|
$stock_comm = floor(($weekRecord * 0.05) * 100) / 100;
|