Browse Source

特价商品每日只能购买一次

master
Lemon 5 years ago
parent
commit
692b4ee2a7
  1. 2
      app/Service/ShopCarService.php

2
app/Service/ShopCarService.php

@ -19,7 +19,7 @@ class ShopCarService implements ShopCarServiceInterface
{
//获取ssdb购买记录
$ssdb = ApplicationContext::getContainer()->get(SSDBTask::class);
$record_exists = $ssdb->exec('get',PURCHASE_RECORD. date('Ymd') .'_'.$params['user_id'].'_'.$params['good_id']);
$record_exists = $ssdb->exec('get',SsdbKeysPrefix::PURCHASE_RECORD. date('Ymd') .'_'.$params['user_id'].'_'.$params['good_id']);
if($record_exists)
{
$error = [

Loading…
Cancel
Save