lizhen_gitee hace 2 años
padre
commit
c920001e38
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      addons/unishop/controller/Product.php

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

@@ -103,7 +103,7 @@ class Product extends Base
         // 评价信息
         $evaluate = (new Evaluate)->alias('e')
             ->join('user u', 'e.user_id = u.id')
-            ->where(['e.product_id' => $productId, 'toptime' => ['>', Evaluate::TOP_OFF]])
+            ->where(['e.product_id' => $productId])
             ->field('u.username,u.nickname,u.avatar,e.*')
             ->order(['toptime' => 'desc', 'createtime' => 'desc'])->limit(2)->select();
         if ($evaluate) {