折扣
This commit is contained in:
@@ -364,7 +364,7 @@ class Base extends Model
|
|||||||
if(is_array($table_arr)) {
|
if(is_array($table_arr)) {
|
||||||
foreach ($table_arr as $k => $v) {
|
foreach ($table_arr as $k => $v) {
|
||||||
if(!Gateway::getClientCountByGroup(str_replace(':time_discount', '', $v))) {
|
if(!Gateway::getClientCountByGroup(str_replace(':time_discount', '', $v))) {
|
||||||
print_r($v . '过期');
|
print_r($v . '过期' ."\r\n");
|
||||||
unset($table_arr[$k]);
|
unset($table_arr[$k]);
|
||||||
Redis::del($v);
|
Redis::del($v);
|
||||||
}
|
}
|
||||||
@@ -372,7 +372,7 @@ class Base extends Model
|
|||||||
Redis::set('time_discount:info', json_encode($table_arr));
|
Redis::set('time_discount:info', json_encode($table_arr));
|
||||||
}else {
|
}else {
|
||||||
if(!Gateway::getClientCountByGroup(str_replace(':time_discount', '', $table_arr))) {
|
if(!Gateway::getClientCountByGroup(str_replace(':time_discount', '', $table_arr))) {
|
||||||
print_r($table_arr . '过期');
|
print_r($table_arr . '过期' ."\r\n");
|
||||||
Redis::del($table_arr);
|
Redis::del($table_arr);
|
||||||
Redis::del('time_discount:info');
|
Redis::del('time_discount:info');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user