@@ -37,10 +37,10 @@ class card_infoModel extends Model
return $this->insert($data);
}
else {
- $item['add_time'] = $info['order_time'];
- $item['update_times'] = $item['update_times'] + 1;
+ $data['add_time'] = $info['order_time'];
+ $data['update_times'] = $item['update_times'] + 1;
- return $this->where(['card_no' => $card_no])->update($item);
+ return $this->where(['card_no' => $card_no])->update($data);
@@ -40,11 +40,11 @@ class TestCardInfo extends TestCase
$i = 0;
while (true)
{
- $start = $i * 10000;
+ $start = $i * 3000;
$items = Model()->table('refill_order')
->field('card_no,order_time,card_type,regin_no,is_transfer,cardno_state')
->where($cond)
- ->order('order_time desc')->limit("{$start},10000")->select();
+ ->order('order_time desc')->limit("{$start},3000")->select();
$i++;
if(empty($items)) break;