公会分成管理--更新

master
chenxiaojun 5 years ago
parent 43a335bc28
commit 48ca90bbf3

@ -1083,22 +1083,17 @@ public function auto_rrdae(){
$error_repeat = 0; $error_repeat = 0;
if (!empty($promotes)) { if (!empty($promotes)) {
switch ($settlement) {
case 1:
$fun = 'promoteWithdrawWeeklyByPromote';
break;
case 2:
$fun = 'promoteWithdrawPerMonthByPromote';
break;
case 3:
$fun = 'promoteWithdrawRecoupByPromote';
break;
}
foreach ($promotes as $promote) { foreach ($promotes as $promote) {
if ($fun == 'promoteWithdrawRecoupByPromote') { switch ($settlement) {
$result = $withdrawModel->$fun($promote); case 1:
} else { $result = $withdrawModel->promoteWithdrawWeeklyByPromote($promote, $initial);
$result = $withdrawModel->$fun($promote, $initial); break;
case 2:
$result = $withdrawModel->promoteWithdrawRecoupByPromote($promote, $initial);
break;
case 3:
$result = $withdrawModel->promoteWithdrawRecoupByPromote($promote);
break;
} }
switch ($result) { switch ($result) {
case -4: case -4:

Loading…
Cancel
Save