公会分成管理--更新

master
chenxiaojun 5 years ago
parent 43a335bc28
commit 48ca90bbf3

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

Loading…
Cancel
Save