Ver Fonte

活动报名

lizhen há 3 dias atrás
pai
commit
987607ac1c
1 ficheiros alterados com 5 adições e 5 exclusões
  1. 5 5
      addons/unishop/controller/Product.php

+ 5 - 5
addons/unishop/controller/Product.php

@@ -64,17 +64,17 @@ class Product extends Base
                 $this->error(__('Goods are off the shelves'));
             }
 
+            // 真实浏览量加一
+            $data->real_look++;
+            $data->look++;
+            $data->save();
+
             //没到过期时间,就能报名
             $data->canbuy = 0;
             if(time() < $data->activetime){
                 $data->canbuy = 1;
             }
 
-            // 真实浏览量加一
-            $data->real_look++;
-            $data->look++;
-            $data->save();
-
             //服务
             /*$server = explode(',', $data->server);
             $configServer = json_decode(Config::getByName('server')['value'],true);