mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
포인트 기록이 없는 사용자에 대해 일괄 포인트 적용 쿼리가 사용자수가 많을 경우 DB에 무리를 주기 때문에 삭제
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2716 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
88f4bb1ba5
commit
85aeeef7f3
2 changed files with 1 additions and 35 deletions
|
|
@ -53,38 +53,6 @@
|
|||
return $level;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 회원 목록 갱신
|
||||
**/
|
||||
function updateMemberList() {
|
||||
$output = executeQuery("point.getPointCount");
|
||||
$point_count = $output->data->count;
|
||||
|
||||
$output = executeQuery("point.getMemberCount");
|
||||
$member_count = count($output->data);
|
||||
|
||||
if($member_count > $point_count) {
|
||||
foreach($output->data as $key => $val) {
|
||||
|
||||
// 포인트가 있는지 체크
|
||||
if($this->isExistsPoint($val->member_srl)) continue;
|
||||
|
||||
// 변수 설정
|
||||
$args->member_srl = $val->member_srl;
|
||||
$args->point = 0;
|
||||
|
||||
$insert = executeQuery("point.insertPoint", $args);
|
||||
|
||||
// 캐시 설정
|
||||
$cache_path = sprintf('./files/member_extra_info/point/%s/', getNumberingPath($val->member_srl));
|
||||
FileHandler::makedir($cache_path);
|
||||
|
||||
$cache_filename = sprintf('%s%d.cache.txt', $cache_path, $val->member_srl);
|
||||
FileHandler::writeFile($cache_filename, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 포인트 순 회원목록 가져오기
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue