作者 lyh

gx

@@ -168,9 +168,9 @@ class UpdateRoute extends Command @@ -168,9 +168,9 @@ class UpdateRoute extends Command
168 */ 168 */
169 public function getProductCategory(){ 169 public function getProductCategory(){
170 $product = new Product(); 170 $product = new Product();
171 - $num = 5; 171 + $num = 35;
172 while ($num > 0){ 172 while ($num > 0){
173 - $list = $product->lists(['status'=>1],$num,5000); 173 + $list = $product->lists(['status'=>1],$num,1000);
174 foreach ($list as $k => $v){ 174 foreach ($list as $k => $v){
175 if(empty($v['category_id'])){ 175 if(empty($v['category_id'])){
176 continue; 176 continue;