Browse Source

更新:单词拼写错误

shizhongqi 4 months ago
parent
commit
df00c5492b
1 changed files with 6 additions and 6 deletions
  1. 6 6
      biz-ghs/product/classes/ProductClass.php

+ 6 - 6
biz-ghs/product/classes/ProductClass.php

@@ -672,12 +672,12 @@ class ProductClass extends BaseClass
                     // 获取缓存超时时间
                     $expire = Yii::$app->redis->executeCommand('TTL', [$limitKey]);
                     if ($expire > 0) {
-                        $list[$k]['limitByuClearTime'] = date('Y-m-d H:i:s', time() + $expire);
+                        $list[$k]['limitBuyClearTime'] = date('Y-m-d H:i:s', time() + $expire);
                     } else {
-                        $list[$k]['limitByuClearTime'] = '';
+                        $list[$k]['limitBuyClearTime'] = '';
                     }
                 } else {
-                    $list[$k]['limitByuClearTime'] = '';
+                    $list[$k]['limitBuyClearTime'] = '';
                 }
             }
         }
@@ -1913,9 +1913,9 @@ class ProductClass extends BaseClass
 
         //创建限购缓存
         if ($data['limitBuy'] > 0 && $data['limitBuyClearTime'] != '') {
-            $limitByuClearTime = strtotime($data['limitBuyClearTime']);
-            if ($limitByuClearTime > 0) {
-                self::createLimitBuyCache($id, $limitByuClearTime - time());
+            $limitBuyClearTime = strtotime($data['limitBuyClearTime']);
+            if ($limitBuyClearTime > 0) {
+                self::createLimitBuyCache($id, $limitBuyClearTime - time());
             }
         }