stanley-king 8 gadi atpakaļ
vecāks
revīzija
e9df26321c
2 mainītis faili ar 31 papildinājumiem un 29 dzēšanām
  1. 28 28
      crontab/crawl/fetch_goods.php
  2. 3 1
      mobile/control/bonusex.php

+ 28 - 28
crontab/crawl/fetch_goods.php

@@ -54,31 +54,31 @@ function not_null($str)
     return (empty($str)) ? '' : $str;
 }
 
-//$tmreq = new tmrequest();
-//$tmreq->proc();
-
-
-//
-//$cat = new category();
-//$cat->proc();
-//
-//$treater = new pretreat_tmdata();
-//$treater->proc(false);
-//
-//
-//$spec = new spec_attr_parser();
-//$spec->proc();
-//
-//$importer = new product_importer();
-//$importer->proc_shop();
-
-//$brander = new brand_operator();
-//$brander->create();
-//$brander->update_brand();
-
-//$ichecker = new importer_check();
-//$ichecker->proc();
-
-$filter = new body_filder();
-$filter->fillbody();
-$filter->proc();
+$tmreq = new tmrequest();
+$tmreq->proc();
+
+
+
+$cat = new category();
+$cat->proc();
+
+$treater = new pretreat_tmdata();
+$treater->proc(false);
+
+
+$spec = new spec_attr_parser();
+$spec->proc();
+
+$importer = new product_importer();
+$importer->proc_shop();
+
+$brander = new brand_operator();
+$brander->create();
+$brander->update_brand();
+
+$ichecker = new importer_check();
+$ichecker->proc();
+
+//$filter = new body_filder();
+//$filter->fillbody();
+//$filter->proc();

+ 3 - 1
mobile/control/bonusex.php

@@ -270,6 +270,7 @@ class bonusexControl extends mobileControl
         }
     }
 
+    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     public function shakeOp()
     {
         if(!isset($_GET['bonus_sn']) || empty($_GET['bonus_sn'])) {
@@ -391,7 +392,8 @@ function bonus_output_grabinfo($output)
         echo ("<p>手慢了,红包被抢完了</p>");
 
         $last_time = $type->grab_lastime();
-        if($last_time) {
+        if($last_time)
+        {
             $wait_sec = $last_time + 600 - time();
             $wait_min = intval($wait_sec / 60);
             $wait_sec = $wait_sec % 60;