|
@@ -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);
|