Ver código fonte

修复播放bug

赵启卫 2 anos atrás
pai
commit
c5bde2642d
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      application/wap/model/special/SpecialBuy.php

+ 1 - 1
application/wap/model/special/SpecialBuy.php

xqd
@@ -121,7 +121,7 @@ class SpecialBuy extends ModelBasic
             $join = [
                 ['PlanBuy pb', "pb.planid = pt.pid and pb.uid=" . $uid, 'inner']
             ];
-            $planItems = PlanItems::alias('pt')->join($join)->where(['pt.cid'=>$special_id])->select();
+            $planItems = PlanItems::alias('pt')->join($join)->where(['pt.cid'=>$special_id])->count();
             $flag = $planItems ? true : false;
         }
         return $flag;