公会分成管理--更新

master
chenxiaojun 5 years ago
parent 43a335bc28
commit 48ca90bbf3

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

Loading…
Cancel
Save