This commit is contained in:
parent
a57399cc50
commit
03a364aef3
|
|
@ -369,13 +369,11 @@ class Base extends Model
|
|||
Redis::del($v);
|
||||
}
|
||||
}
|
||||
Redis::set('time_discount:info', json_encode($table_arr));
|
||||
}else {
|
||||
if(!Gateway::getClientCountByGroup(str_replace(':time_discount', '', $table_arr))) {
|
||||
print_r($table_arr . '过期' ."\r\n");
|
||||
Redis::del($table_arr);
|
||||
Redis::del('time_discount:info');
|
||||
}
|
||||
Redis::set('time_discount:info', implode(',',$table_arr) . ',');
|
||||
}
|
||||
if(empty($table_arr)){
|
||||
print_r(json_encode($table_arr) . '过期' ."\r\n");
|
||||
Redis::del('time_discount:info');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -595,6 +593,7 @@ class Base extends Model
|
|||
'sku_name' => !empty($message['is_temporary'])?$message['sku_name']:'',
|
||||
'product_type' => !empty($message['product_type'])?$message['product_type']:'',
|
||||
'is_print' => !empty($message['is_print'])?$message['is_print']:0,
|
||||
'is_time_discount' => !empty($message['is_time_discount'])?$message['is_time_discount']:0,
|
||||
'is_wait_call' => !empty($message['is_wait_call'])?$message['is_wait_call']:0,
|
||||
'pack_number' => !empty($message['pack_number'])?$message['pack_number']:0,
|
||||
'remark' => !empty($message['remark'])?$message['remark']:'',
|
||||
|
|
|
|||
Loading…
Reference in New Issue