优化提示

This commit is contained in:
邓皓元 2019-04-22 16:19:36 +08:00
parent 8bfea4dfc5
commit bdff9f28bb

View File

@ -42,8 +42,6 @@ class VdActivated extends Command
$this->line('chunk');
foreach (array_chunk($cards, 1000) as $simArray) {
echo '.';
$simArray = array_map('strval', $simArray);
$res = TblCard::select(['cNo', 'saDate'])
@ -52,7 +50,12 @@ class VdActivated extends Command
->where('saDate', '>=', $startMicrotime)
->get()->toArray();
if(empty($res)){
echo '.';
}
if (!empty($res)) {
echo '*';
$array = [];
foreach ($res as $item) {
$array[] = [