优化提示
This commit is contained in:
parent
8bfea4dfc5
commit
bdff9f28bb
@ -42,8 +42,6 @@ class VdActivated extends Command
|
|||||||
$this->line('chunk');
|
$this->line('chunk');
|
||||||
|
|
||||||
foreach (array_chunk($cards, 1000) as $simArray) {
|
foreach (array_chunk($cards, 1000) as $simArray) {
|
||||||
echo '.';
|
|
||||||
|
|
||||||
$simArray = array_map('strval', $simArray);
|
$simArray = array_map('strval', $simArray);
|
||||||
|
|
||||||
$res = TblCard::select(['cNo', 'saDate'])
|
$res = TblCard::select(['cNo', 'saDate'])
|
||||||
@ -52,7 +50,12 @@ class VdActivated extends Command
|
|||||||
->where('saDate', '>=', $startMicrotime)
|
->where('saDate', '>=', $startMicrotime)
|
||||||
->get()->toArray();
|
->get()->toArray();
|
||||||
|
|
||||||
|
if(empty($res)){
|
||||||
|
echo '.';
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($res)) {
|
if (!empty($res)) {
|
||||||
|
echo '*';
|
||||||
$array = [];
|
$array = [];
|
||||||
foreach ($res as $item) {
|
foreach ($res as $item) {
|
||||||
$array[] = [
|
$array[] = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user