|
|
|
@ -791,7 +791,7 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public function promoteUserPool($type,$stime,$recount = false){
|
|
|
|
|
public function promoteUserPool($type,$stime,$recount = false,$is_payment=false){
|
|
|
|
|
$t = $this->setBeginAndEndTime($type,$stime);
|
|
|
|
|
$begintime = $t[0];
|
|
|
|
|
$endtime = $t[1];
|
|
|
|
@ -835,9 +835,15 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
|
$user['withdraw_type'] = 2;
|
|
|
|
|
$this->doPromoteUserPool($user,$users,2,$stime,$recount);
|
|
|
|
|
}
|
|
|
|
|
if($is_payment !== false && $is_payment==1){
|
|
|
|
|
$this->savePromotateUserPool($users);
|
|
|
|
|
}else if($is_payment !== false && $is_payment==2){
|
|
|
|
|
$this->savePromotateUserPool($user);
|
|
|
|
|
}else{
|
|
|
|
|
$this->savePromotateUserPool($users);
|
|
|
|
|
$this->savePromotateUserPool($user);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$this->savePromotateUserPool($users);
|
|
|
|
|
$this->savePromotateUserPool($user);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|